Class: Chamber::Commands::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/chamber/commands/base.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Base

Returns a new instance of Base.



7
8
9
10
11
12
# File 'lib/chamber/commands/base.rb', line 7

def initialize(options = {})
  self.chamber  = Chamber::Instance.new options
  self.shell    = options[:shell]
  self.rootpath = options[:rootpath]
  self.dry_run  = options[:dry_run]
end

Class Method Details

.call(options = {}) ⇒ Object



14
15
16
# File 'lib/chamber/commands/base.rb', line 14

def self.call(options = {})
  new(options).call
end