Module: ChefMetalVagrant
- Defined in:
- lib/chef_metal_vagrant.rb,
lib/chef_metal_vagrant/version.rb,
lib/chef_metal_vagrant/vagrant_driver.rb
Defined Under Namespace
Classes: VagrantDriver
Constant Summary collapse
- VERSION =
'0.4'
Class Method Summary collapse
Class Method Details
.with_vagrant_box(run_context, box_name, vagrant_options = {}, &block) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/chef_metal_vagrant.rb', line 9 def self.with_vagrant_box(run_context, box_name, = {}, &block) if box_name.is_a?(Chef::Resource::VagrantBox) = { :vagrant_options => { 'vm.box' => box_name.name } } [:vagrant_options]['vm.box_url'] = box_name.url if box_name.url else = { :vagrant_options => { 'vm.box' => box_name } } end run_context..(, &block) end |