Class: BetaBuilder::DeploymentStrategies::Strategy

Inherits:
Object
  • Object
show all
Defined in:
lib/beta_builder/deployment_strategies.rb

Direct Known Subclasses

TestFlight, Web

Instance Method Summary collapse

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

Yields:

  • (@configuration)


20
21
22
# File 'lib/beta_builder/deployment_strategies.rb', line 20

def configure(&block)
  yield @configuration
end

#prepareObject



24
25
26
# File 'lib/beta_builder/deployment_strategies.rb', line 24

def prepare
  puts "Nothing to prepare!"
end