Class: Chef::Provisioning::MachineImageSpec

Inherits:
ManagedEntry show all
Defined in:
lib/chef/provisioning/machine_image_spec.rb

Overview

Specification for a image. Sufficient information to find and contact it after it has been set up.

Instance Attribute Summary

Attributes inherited from ManagedEntry

#data, #managed_entry_store, #name, #resource_type

Instance Method Summary collapse

Methods inherited from ManagedEntry

#attrs, #delete, #delete_data, #driver_url, #driver_url=, #get_data, #id, #identifier, #initialize, #reference, #reference=, #save, #save_data

Constructor Details

This class inherits a constructor from Chef::Provisioning::ManagedEntry

Instance Method Details

#from_imageObject



13
14
15
# File 'lib/chef/provisioning/machine_image_spec.rb', line 13

def from_image
  data['from_image']
end

#from_image=(value) ⇒ Object



16
17
18
# File 'lib/chef/provisioning/machine_image_spec.rb', line 16

def from_image=(value)
  data['from_image'] = value
end

#machine_optionsObject



25
26
27
# File 'lib/chef/provisioning/machine_image_spec.rb', line 25

def machine_options
  @machine_options
end

#machine_options=(value) ⇒ Object



28
29
30
31
# File 'lib/chef/provisioning/machine_image_spec.rb', line 28

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

#run_listObject



19
20
21
# File 'lib/chef/provisioning/machine_image_spec.rb', line 19

def run_list
  data['run_list']
end

#run_list=(value) ⇒ Object



22
23
24
# File 'lib/chef/provisioning/machine_image_spec.rb', line 22

def run_list=(value)
  data['run_list'] = value
end