Sha256: 74e5126260cb4123941c9ec7faf483bcbc6846511a9f4f0cddafe004d147b6f2

Contents?: true

Size: 861 Bytes

Versions: 1

Compression:

Stored size: 861 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

1 entries across 1 versions & 1 rubygems

Version Path
chef-provisioning-2.0.1 lib/chef/provisioning/machine_image_spec.rb