1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[aws|server] fixed deprecation warnings for ip_address

This commit is contained in:
Allan 2011-02-25 08:32:52 +08:00 committed by Wesley Beary
parent 5030cbb2fe
commit de7a6b0564

View file

@ -179,19 +179,19 @@ module Fog
end
def ssh(commands)
requires :identity, :ip_address, :username
requires :identity, :public_ip_address, :username
options = {}
options[:key_data] = [private_key] if private_key
Fog::SSH.new(ip_address, username, options).run(commands)
Fog::SSH.new(public_ip_address, username, options).run(commands)
end
def scp(local_path, remote_path)
requires :ip_address, :username
requires :public_ip_address, :username
options = {}
options[:key_data] = [private_key] if private_key
Fog::SCP.new(ip_address, username, options).upload(local_path, remote_path)
Fog::SCP.new(public_ip_address, username, options).upload(local_path, remote_path)
end
def start