class Flock::Sandbox::Vagrant
Public Class Methods
new(definition)
click to toggle source
# File lib/flock/sandbox.rb, line 151 def initialize(definition) @definition = definition end
Public Instance Methods
run()
click to toggle source
# File lib/flock/sandbox.rb, line 155 def run template = ERB.new(File.read(File.expand_path('../../../resources/vagrant.erb', __FILE__))) puts template.result(@definition.instance_eval { binding }) end