Class: Chef::Recipe

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

Instance Method Summary collapse

Instance Method Details

#with_fog_ec2_provisioner(options = {}, &block) ⇒ Object



12
13
14
# File 'lib/chef_metal_fog.rb', line 12

def with_fog_ec2_provisioner(options = {}, &block)
  with_fog_provisioner({ :provider => 'AWS' }.merge(options), &block)
end

#with_fog_openstack_provisioner(options = {}, &block) ⇒ Object



16
17
18
# File 'lib/chef_metal_fog.rb', line 16

def with_fog_openstack_provisioner(options = {}, &block)
  with_fog_provisioner({ :provider => 'OpenStack' }.merge(options), &block)
end

#with_fog_provisioner(options = {}, &block) ⇒ Object



8
9
10
# File 'lib/chef_metal_fog.rb', line 8

def with_fog_provisioner(options = {}, &block)
  ChefMetal.with_provisioner(ChefMetalFog::FogProvisioner.new(options), &block)
end