class Tengine::ResourceEc2::Provider::PhysicalServerSynchronizer
Public Instance Methods
attrs_to_create(properties)
click to toggle source
Calls superclass method
# File lib/tengine/resource_ec2/provider.rb, line 40 def attrs_to_create(properties) result = super(properties) # 初期登録時、default 値として name には一意な provided_id を name へ登録します result[:name] = result[:provided_id] result end
destroy_targets(targets)
click to toggle source
# File lib/tengine/resource_ec2/provider.rb, line 47 def destroy_targets(targets) targets.each do |target| target.status = "not_found" target.save! end end