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 6
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 11
def run
  spec = spec_for_gem(gem_name)

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