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

Moved #compact to a sesparate line to make it a little more obvious

This commit is contained in:
Evan Light 2013-12-20 10:40:16 -05:00
parent ec64ed4b42
commit db9e55e98c

View file

@ -522,13 +522,16 @@ module Fog
# @see Servers#bootstrap
def setup(credentials = {})
requires :public_ip_address, :identity, :public_key, :username
commands = [
%{mkdir .ssh},
%{echo "#{public_key}" >> ~/.ssh/authorized_keys},
password_lock,
%{echo "#{Fog::JSON.encode(attributes)}" >> ~/attributes.json},
%{echo "#{Fog::JSON.encode(metadata)}" >> ~/metadata.json}
].compact
]
commands.compact
Fog::SSH.new(public_ip_address, username, credentials).run(commands)
rescue Errno::ECONNREFUSED
sleep(1)