Class: Servitor::InfrastructureProvisioner

Inherits:
Object
  • Object
show all
Defined in:
lib/infrastructure/infrastructure_provisioner.rb

Class Method Summary collapse

Class Method Details

.provision(requirements) ⇒ Object

Provisions an infrastructure that meets the requirements for the given service config. Returns an infrastructure.



9
10
11
12
13
# File 'lib/infrastructure/infrastructure_provisioner.rb', line 9

def provision(requirements)
  VagrantBox.define(requirements) do |box|
    VagrantBoxRubyInstaller.new(requirements).install(box)
  end
end