Class: Stove::Runner

Inherits:
Object
  • Object
show all
Includes:
Logify
Defined in:
lib/stove/runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cookbook, options = {}) ⇒ Runner

Returns a new instance of Runner.



8
9
10
11
# File 'lib/stove/runner.rb', line 8

def initialize(cookbook, options = {})
  @cookbook = cookbook
  @options  = options
end

Instance Attribute Details

#cookbookObject (readonly)

Returns the value of attribute cookbook.



5
6
7
# File 'lib/stove/runner.rb', line 5

def cookbook
  @cookbook
end

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/stove/runner.rb', line 6

def options
  @options
end

Instance Method Details

#runObject



13
14
15
16
# File 'lib/stove/runner.rb', line 13

def run
  run_plugin :git
  run_plugin :community
end