Sha256: 75df424bf9a7558deb142c9b7a8e68bacc0897dccd1b988d27f49c1bed715b46

Contents?: true

Size: 604 Bytes

Versions: 5

Compression:

Stored size: 604 Bytes

Contents

require 'chef_metal'
require 'chef/resource/fog_key_pair'
require 'chef/provider/fog_key_pair'
require 'chef_metal_fog/fog_provisioner'

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

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
chef-metal-fog-0.3.1 lib/chef_metal_fog.rb
chef-metal-fog-0.3 lib/chef_metal_fog.rb
chef-metal-fog-0.2.1 lib/chef_metal_fog.rb
chef-metal-fog-0.2 lib/chef_metal_fog.rb
chef-metal-fog-0.1 lib/chef_metal_fog.rb