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

Use MultiJSON #dump and #load rather than #encode and #decode

MultiJSON deprecated these methods in 1.3.0 in favour of the new ones.
This requires an update to the gemspec to ensure ~>1.3
This commit is contained in:
Steve Smith 2012-04-20 12:54:34 +01:00
parent 7ec382cf36
commit d89dd56fe7
125 changed files with 143 additions and 143 deletions

View file

@ -121,7 +121,7 @@ module Fog
%{mkdir .ssh},
%{echo "#{public_key}" >> ~/.ssh/authorized_keys},
%{passwd -l #{username}},
%{echo "#{MultiJson.encode(attributes)}" >> ~/attributes.json},
%{echo "#{MultiJson.dump(attributes)}" >> ~/attributes.json},
])
rescue Errno::ECONNREFUSED
sleep(1)