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:
parent
5030cbb2fe
commit
de7a6b0564
1 changed files with 4 additions and 4 deletions
|
@ -179,19 +179,19 @@ module Fog
|
||||||
end
|
end
|
||||||
|
|
||||||
def ssh(commands)
|
def ssh(commands)
|
||||||
requires :identity, :ip_address, :username
|
requires :identity, :public_ip_address, :username
|
||||||
|
|
||||||
options = {}
|
options = {}
|
||||||
options[:key_data] = [private_key] if private_key
|
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
|
end
|
||||||
|
|
||||||
def scp(local_path, remote_path)
|
def scp(local_path, remote_path)
|
||||||
requires :ip_address, :username
|
requires :public_ip_address, :username
|
||||||
|
|
||||||
options = {}
|
options = {}
|
||||||
options[:key_data] = [private_key] if private_key
|
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
|
end
|
||||||
|
|
||||||
def start
|
def start
|
||||||
|
|
Loading…
Reference in a new issue