Class: Boxing::Commands::Base
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Boxing::Commands::Base
- Includes:
- Thor::Actions
- Defined in:
- lib/boxing/commands/base.rb
Overview
The Base Command
Class Method Summary collapse
-
.source_root ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#prepare ⇒ Object
Prepare command environment.
Class Method Details
.source_root ⇒ Object
:nodoc:
13 14 15 |
# File 'lib/boxing/commands/base.rb', line 13 def self.source_root Pathname.new(File.dirname(__FILE__)).join('../../..') end |
Instance Method Details
#prepare ⇒ Object
Prepare command environment
20 21 22 23 24 25 |
# File 'lib/boxing/commands/base.rb', line 20 def prepare config = Bundler.root.join('config/boxing.rb') return unless config.exist? load config end |