Class: Gem::Commands::AppraiserCommand
- Inherits:
-
Gem::Command
- Object
- Gem::Command
- Gem::Commands::AppraiserCommand
- 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
- #execute ⇒ Object
-
#initialize ⇒ AppraiserCommand
constructor
A new instance of AppraiserCommand.
-
#usage ⇒ Object
:nodoc:.
Constructor Details
#initialize ⇒ AppraiserCommand
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, | [:group] = group end end |
Instance Method Details
#execute ⇒ Object
32 33 34 |
# File 'lib/rubygems/commands/appraiser_command.rb', line 32 def execute process($stdout) end |
#usage ⇒ Object
:nodoc:
28 29 30 |
# File 'lib/rubygems/commands/appraiser_command.rb', line 28 def usage # :nodoc: "#{program_name} [-g group]" end |