Class: Gem::Commands::ThisCommand

Inherits:
Gem::Command
  • Object
show all
Defined in:
lib/rubygems_plugin.rb

Instance Method Summary collapse

Constructor Details

#initializeThisCommand

Returns a new instance of ThisCommand.



6
7
8
9
10
11
# File 'lib/rubygems_plugin.rb', line 6

def initialize
  super 'this', GemThis::SUMMARY, :debug => false
  add_option('-d', '--debug', GemThis::DEBUG_MESSAGE) do |debug, options|
    options[:debug] = debug
  end
end

Instance Method Details

#executeObject



17
18
19
# File 'lib/rubygems_plugin.rb', line 17

def execute
  GemThis.new(options[:args].first || File.basename(Dir.pwd), options).create_rakefile
end

#summaryObject



13
14
15
# File 'lib/rubygems_plugin.rb', line 13

def summary
  GemThis::SUMMARY
end