class Topo::Provision::MachineGenerator
Attributes
lazy_attributes[R]
machine_options[R]
normal_attributes[R]
Public Class Methods
new(data)
click to toggle source
Calls superclass method
Topo::Provision::ResourceGenerator::new
# File lib/topo/provision/generators/machine.rb, line 31 def initialize(data) @resource_type ||= "machine" super @undeploy_action = "destroy" @normal_attributes = data['attributes']||{} @lazy_attributes = data['lazy_attributes']||{} %w[run_list chef_environment tags ].each do |key| @resource_attributes[key] = data[key] if data.key? key end opts = data['provisioning']['machine_options'] @machine_options = convert_keys_to_sym(opts) if opts end
Public Instance Methods
stop()
click to toggle source
# File lib/topo/provision/generators/machine.rb, line 44 def stop() puts(template("stop").result(binding)) end