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:
parent
ec64ed4b42
commit
db9e55e98c
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue