Sha256: e43a75ff468375b7dc48af9641c9ca4b6829fef71b9d6e539d3e4f628c83a0f1

Contents?: true

Size: 428 Bytes

Versions: 2

Compression:

Stored size: 428 Bytes

Contents

require 'chef/resource/lwrp_base'
require 'chef_metal_vagrant'

class Chef::Resource::VagrantCluster < Chef::Resource::LWRPBase
  self.resource_name = 'vagrant_cluster'

  actions :create, :delete, :nothing
  default_action :create

  attribute :path, :kind_of => String, :name_attribute => true

  def after_created
    super
    run_context.chef_metal.with_provisioner ChefMetalVagrant::VagrantProvisioner.new(path)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chef-metal-vagrant-0.3.1 lib/chef/resource/vagrant_cluster.rb
chef-metal-vagrant-0.3 lib/chef/resource/vagrant_cluster.rb