Class: Stove::Runner
- Inherits:
-
Object
- Object
- Stove::Runner
- Defined in:
- lib/stove/runner.rb
Instance Attribute Summary collapse
-
#cookbook ⇒ Object
readonly
Returns the value of attribute cookbook.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(cookbook, options = {}) ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
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, = {}) @cookbook = cookbook @options = end |
Instance Attribute Details
#cookbook ⇒ Object (readonly)
Returns the value of attribute cookbook.
3 4 5 |
# File 'lib/stove/runner.rb', line 3 def cookbook @cookbook end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/stove/runner.rb', line 4 def @options end |
Instance Method Details
#run ⇒ Object
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 |