lib/fog/rackspace/models/compute/server.rb in fog-maestrodev-1.19.0.20140212012611 vs lib/fog/rackspace/models/compute/server.rb in fog-maestrodev-1.20.0.20140305101305
- old
+ new
@@ -78,11 +78,11 @@
merge_attributes(data.body['server'])
true
end
def setup(credentials = {})
- requires :public_ip_address, :identity, :public_key, :username
- Fog::SSH.new(public_ip_address, username, credentials).run([
+ requires :ssh_ip_address, :identity, :public_key, :username
+ Fog::SSH.new(ssh_ip_address, username, credentials).run([
%{mkdir .ssh},
%{echo "#{public_key}" >> ~/.ssh/authorized_keys},
%{passwd -l #{username}},
%{echo "#{Fog::JSON.encode(attributes)}" >> ~/attributes.json},
%{echo "#{Fog::JSON.encode(metadata)}" >> ~/metadata.json}