Sha256: 0e04103b9f0501cb3c4a87436425c7ff5e0d5e6bbdd2ea534629ab54cba2829f

Contents?: true

Size: 472 Bytes

Versions: 2

Compression:

Stored size: 472 Bytes

Contents

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

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chef-metal-0.3.1 lib/chef_metal/fog.rb
chef-metal-0.3 lib/chef_metal/fog.rb