# File lib/cloudmasterd.rb, line 143 def create if input.hostname Machine.find(:all, :conditions => "name = '#{input.system_name}'").each do |machine| machine.update_attribute(:hostname, input.hostname) end elsif input.node_name Machine.find(:all, :conditions => "name = '#{input.system_name}'").each do |machine| machine.update_attribute(:node_name, input.node_name) end end end