Class: RubyDeployer::Provisioner

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_deployer/provisioner.rb

Instance Method Summary collapse

Constructor Details

#initialize(deploy_file, environment) ⇒ Provisioner

Returns a new instance of Provisioner.



3
4
5
6
# File 'lib/ruby_deployer/provisioner.rb', line 3

def initialize deploy_file, environment
  @deploy_file = deploy_file
  @environment = environment
end

Instance Method Details

#startObject



8
9
10
11
# File 'lib/ruby_deployer/provisioner.rb', line 8

def start
  puts 'Provisioning...'
  @deploy_file.instances.each { |instance| instance.build(connection, @environment) }
end