Class: RubyDeployer::Provisioner
- Inherits:
-
Object
- Object
- RubyDeployer::Provisioner
- Defined in:
- lib/ruby_deployer/provisioner.rb
Instance Method Summary collapse
-
#initialize(deploy_file, environment) ⇒ Provisioner
constructor
A new instance of Provisioner.
- #start ⇒ Object
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
#start ⇒ Object
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 |