Class: Topo::Provision::AwsMachineImageGenerator
- Inherits:
-
MachineImageGenerator
- Object
- ResourceGenerator
- MachineGenerator
- MachineImageGenerator
- Topo::Provision::AwsMachineImageGenerator
- Defined in:
- lib/topo/provision/aws/generators/machine_image.rb
Instance Attribute Summary
Attributes inherited from MachineImageGenerator
#lazy_attributes, #machine_options, #normal_attributes
Attributes inherited from MachineGenerator
#lazy_attributes, #machine_options, #normal_attributes
Attributes inherited from ResourceGenerator
#name, #resource_attributes, #resource_type, #undeploy_action
Instance Method Summary collapse
-
#initialize(data) ⇒ AwsMachineImageGenerator
constructor
A new instance of AwsMachineImageGenerator.
-
#stop ⇒ Object
AWS driver doesnt currently support stop.
Methods inherited from ResourceGenerator
#default_action, #default_resource_template, #deploy, #do_action, #template, #template_root_dir, #undeploy
Methods included from Topo::ParseGen
#convert_keys_to_sym, #convert_keys_to_sym_deep, #expand_ref, #lazy_attribute_to_s, #topo_refs, #value_from_path
Constructor Details
#initialize(data) ⇒ AwsMachineImageGenerator
Returns a new instance of AwsMachineImageGenerator.
29 30 31 32 33 34 |
# File 'lib/topo/provision/aws/generators/machine_image.rb', line 29 def initialize(data) super opts = @resource_attributes['image_options'] @resource_attributes['image_options'] = convert_keys_to_sym_deep(opts) if opts @machine_options = convert_keys_to_sym_deep(@machine_options) if @machine_options end |
Instance Method Details
#stop ⇒ Object
AWS driver doesnt currently support stop
37 38 39 |
# File 'lib/topo/provision/aws/generators/machine_image.rb', line 37 def stop() default_action('stop') end |