Class: Stove::Runner

Inherits:
Object
  • Object
show all
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.



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

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

Instance Attribute Details

#cookbookObject (readonly)

Returns the value of attribute cookbook.



3
4
5
# File 'lib/stove/runner.rb', line 3

def cookbook
  @cookbook
end

#optionsObject (readonly)

Returns the value of attribute options.



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

def options
  @options
end

Instance Method Details

#runObject



11
12
13
14
15
16
17
18
# File 'lib/stove/runner.rb', line 11

def run
  run_plugin :git
  if Config.artifactory
    run_plugin :artifactory
  else
    run_plugin :supermarket
  end
end