lib/fog/digitalocean/models/compute/server.rb in fog-1.19.0 vs lib/fog/digitalocean/models/compute/server.rb in fog-1.20.0
- old
+ new
@@ -17,10 +17,11 @@
# Not documented in their API, but
# available nevertheless
attribute :public_ip_address, :aliases => 'ip_address'
attribute :private_ip_address
attribute :backups_active
+ attribute :created_at
attr_writer :ssh_keys
# Deprecated: Use public_ip_address instead.
def ip_address
@@ -80,11 +81,11 @@
requires :id
service.power_on_server self.id
end
def setup(credentials = {})
- requires :public_ip_address
+ requires :ssh_ip_address
require 'net/ssh'
commands = [
%{mkdir .ssh},
%{passwd -l #{username}},
@@ -95,10 +96,10 @@
end
# wait for aws to be ready
wait_for { sshable?(credentials) }
- Fog::SSH.new(public_ip_address, username, credentials).run(commands)
+ Fog::SSH.new(ssh_ip_address, username, credentials).run(commands)
end
# Creates the server (not to be called directly).
#
# Usually called by Fog::Collection#create