Sha256: 26d5661dc0d7952ed5a033060d0d7cc5aff5e2ce969efe62e4ab461fc902c007

Contents?: true

Size: 827 Bytes

Versions: 39

Compression:

Stored size: 827 Bytes

Contents

require 'chef/provisioning/managed_entry'

class Chef
module Provisioning
  #
  # Specification for a image. Sufficient information to find and contact it
  # after it has been set up.
  #
  class MachineImageSpec < ManagedEntry
    alias :location :reference
    alias :location= :reference=

    def from_image
      data['from_image']
    end
    def from_image=(value)
      data['from_image'] = value
    end
    def run_list
      data['run_list']
    end
    def run_list=(value)
      data['run_list'] = value
    end
    def machine_options
      @machine_options
    end
    def machine_options=(value)
      Chef::Log.warn("Machine options are no longer stored in machine_image_spec.  Drivers that store machine_options will stop working with Provisioning 1.0.")
      @machine_options = value
    end
  end
end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
chef-provisioning-2.7.6 lib/chef/provisioning/machine_image_spec.rb
chef-provisioning-2.7.4 lib/chef/provisioning/machine_image_spec.rb
chef-provisioning-2.7.2 lib/chef/provisioning/machine_image_spec.rb
chef-provisioning-2.7.1 lib/chef/provisioning/machine_image_spec.rb
chef-provisioning-2.7.0 lib/chef/provisioning/machine_image_spec.rb
chef-provisioning-2.6.0 lib/chef/provisioning/machine_image_spec.rb
chef-provisioning-2.5.0 lib/chef/provisioning/machine_image_spec.rb
chef-provisioning-2.4.0 lib/chef/provisioning/machine_image_spec.rb
chef-provisioning-2.3.2 lib/chef/provisioning/machine_image_spec.rb
chef-provisioning-2.3.1 lib/chef/provisioning/machine_image_spec.rb
chef-provisioning-2.3.0 lib/chef/provisioning/machine_image_spec.rb
chef-provisioning-2.2.1 lib/chef/provisioning/machine_image_spec.rb
chef-provisioning-2.2.0 lib/chef/provisioning/machine_image_spec.rb
chef-provisioning-2.1.1 lib/chef/provisioning/machine_image_spec.rb
chef-provisioning-2.1.0 lib/chef/provisioning/machine_image_spec.rb
chef-provisioning-2.0.2 lib/chef/provisioning/machine_image_spec.rb
chef-provisioning-2.0.0 lib/chef/provisioning/machine_image_spec.rb
chef-provisioning-1.9.1 lib/chef/provisioning/machine_image_spec.rb
chef-provisioning-1.9.0 lib/chef/provisioning/machine_image_spec.rb
chef-provisioning-1.8.1 lib/chef/provisioning/machine_image_spec.rb