Class: Boxing::Commands::Base

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/boxing/commands/base.rb

Overview

The Base Command

Since:

  • 0.5.0

Direct Known Subclasses

Compose, Generate, Update

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject

:nodoc:

Since:

  • 0.5.0



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

#prepareObject

Prepare command environment

Since:

  • 0.5.0



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