Sha256: d89dc15a0e0e241b2ca80004f1ed61d1ee9a525c74650a236c98e1d8fc9b2628

Contents?: true

Size: 477 Bytes

Versions: 7

Compression:

Stored size: 477 Bytes

Contents

require 'chef/resource/lwrp_base'
require 'chef_metal/provisioner/vagrant_provisioner'

class Chef::Resource::VagrantBox < Chef::Resource::LWRPBase
  self.resource_name = 'vagrant_box'

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

  attribute :name, :kind_of => String, :name_attribute => true
  attribute :url, :kind_of => String
  attribute :provisioner_options, :kind_of => Hash

  def after_created
    super
    ChefMetal.with_vagrant_box self
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
chef-metal-0.5 lib/chef/resource/vagrant_box.rb
chef-metal-0.4 lib/chef/resource/vagrant_box.rb
chef-metal-0.3.1 lib/chef/resource/vagrant_box.rb
chef-metal-0.3 lib/chef/resource/vagrant_box.rb
chef-metal-0.2.1 lib/chef/resource/vagrant_box.rb
chef-metal-0.2 lib/chef/resource/vagrant_box.rb
chef-metal-0.1 lib/chef/resource/vagrant_box.rb