In Files

  • bundler/cli/info.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

Bundler::CLI::Info

Attributes

gem_name[R]
options[R]

Public Class Methods

new(options, gem_name) click to toggle source
 
               # File bundler/cli/info.rb, line 5
def initialize(options, gem_name)
  @options = options
  @gem_name = gem_name
end
            

Public Instance Methods

run() click to toggle source
 
               # File bundler/cli/info.rb, line 10
def run
  Bundler.ui.silence do
    Bundler.definition.validate_runtime!
    Bundler.load.lock
  end

  spec = spec_for_gem(gem_name)

  if spec
    return print_gem_path(spec) if @options[:path]
    print_gem_info(spec)
  end
end