Class: BetaBuilder::DeploymentStrategies::Strategy
- Inherits:
-
Object
- Object
- BetaBuilder::DeploymentStrategies::Strategy
- Defined in:
- lib/beta_builder/deployment_strategies.rb
Direct Known Subclasses
Instance Method Summary collapse
- #configure {|@configuration| ... } ⇒ Object
-
#initialize(configuration) ⇒ Strategy
constructor
A new instance of Strategy.
- #prepare ⇒ Object
Constructor Details
#initialize(configuration) ⇒ Strategy
Returns a new instance of Strategy.
12 13 14 15 16 17 18 |
# File 'lib/beta_builder/deployment_strategies.rb', line 12 def initialize(configuration) @configuration = configuration if respond_to?(:extended_configuration_for_strategy) @configuration.instance_eval(&extended_configuration_for_strategy) end end |
Instance Method Details
#configure {|@configuration| ... } ⇒ Object
20 21 22 |
# File 'lib/beta_builder/deployment_strategies.rb', line 20 def configure(&block) yield @configuration end |
#prepare ⇒ Object
24 25 26 |
# File 'lib/beta_builder/deployment_strategies.rb', line 24 def prepare puts "Nothing to prepare!" end |