lib/standup/node.rb in standup-0.3.5 vs lib/standup/node.rb in standup-0.3.6

- old
+ new

@@ -1,5 +1,7 @@ +require 'active_support/hash_with_indifferent_access' + module Standup class Node def initialize name @name = name @@ -22,14 +24,14 @@ @instance ||= EC2::Instance.group_running[id_group].try(:first) end def ssh_string return '' unless instance - "ssh -i #{Settings.aws.keypair_file} -q -o StrictHostKeyChecking=no #{params.ec2.ssh_user}@#{instance.external_ip}" + "ssh -i #{Settings.aws.keypair_file} -q -o StrictHostKeyChecking=no #{scripts.ec2.params.ssh_user}@#{instance.external_ip}" end def params - Settings.nodes[@name] + Settings.nodes[@name] || ActiveSupport::HashWithIndifferentAccess.new end def remoting @remoting ||= Remoting.new self end \ No newline at end of file