Class: Gem::Commands::ThisCommand
- Inherits:
-
Gem::Command
- Object
- Gem::Command
- Gem::Commands::ThisCommand
- Defined in:
- lib/rubygems_plugin.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize ⇒ ThisCommand
constructor
A new instance of ThisCommand.
- #summary ⇒ Object
Constructor Details
#initialize ⇒ ThisCommand
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, | [:debug] = debug end end |
Instance Method Details
#execute ⇒ Object
17 18 19 |
# File 'lib/rubygems_plugin.rb', line 17 def execute GemThis.new([:args].first || File.basename(Dir.pwd), ).create_rakefile end |