Class: Gem::Commands::AppraiserCommand

Inherits:
Gem::Command
  • Object
show all
Defined in:
lib/rubygems/commands/appraiser_command.rb

Constant Summary collapse

RUBY_GEMS_URL =
'http://rubygems.org/api/v1/gems/%s.json'
LINE =
'-' * 60

Instance Method Summary collapse

Constructor Details

#initializeAppraiserCommand

Returns a new instance of AppraiserCommand.



20
21
22
23
24
25
26
# File 'lib/rubygems/commands/appraiser_command.rb', line 20

def initialize
  super 'appraiser', 'Display gem information in ./Gemfile'

  add_option('-g', '--group=GROUP', 'Group') do |group, options|
    options[:group] = group
  end
end

Instance Method Details

#executeObject



32
33
34
# File 'lib/rubygems/commands/appraiser_command.rb', line 32

def execute
  process($stdout)
end

#usageObject

:nodoc:



28
29
30
# File 'lib/rubygems/commands/appraiser_command.rb', line 28

def usage # :nodoc:
  "#{program_name} [-g group]"
end