Class: Flock::Sandbox::Vagrant
- Inherits:
-
Object
- Object
- Flock::Sandbox::Vagrant
- Defined in:
- lib/flock/sandbox.rb
Instance Method Summary collapse
-
#initialize(definition) ⇒ Vagrant
constructor
A new instance of Vagrant.
- #run ⇒ Object
Constructor Details
#initialize(definition) ⇒ Vagrant
Returns a new instance of Vagrant.
151 152 153 |
# File 'lib/flock/sandbox.rb', line 151 def initialize(definition) @definition = definition end |
Instance Method Details
#run ⇒ Object
155 156 157 158 |
# File 'lib/flock/sandbox.rb', line 155 def run template = ERB.new(File.read(File.('../../../resources/vagrant.erb', __FILE__))) puts template.result(@definition.instance_eval { binding }) end |