Class: SproutPunk::Commands::Base
- Inherits:
-
Thor
- Object
- Thor
- SproutPunk::Commands::Base
- Includes:
- Helpers, Thor::Actions
- Defined in:
- lib/sproutpunk/commands/base.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
A new instance of Base.
Methods included from Helpers
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
8 9 10 11 12 13 14 |
# File 'lib/sproutpunk/commands/base.rb', line 8 def initialize(*) super if [:version] say "SproutPunk v#{SproutPunk::VERSION}", :red exit end end |
Class Method Details
.command_set(name, usage, desc) ⇒ Object
16 17 18 |
# File 'lib/sproutpunk/commands/base.rb', line 16 def self.command_set(name, usage, desc) SproutPunk::CLI.register(self, name, usage, desc) end |