lib/sconb.rb in sconb-0.0.2 vs lib/sconb.rb in sconb-0.0.3
- old
+ new
@@ -41,9 +41,10 @@
puts JSON.pretty_generate configs
end
desc "restore < dump.json > .ssh/config", "Restore .ssh/config from JSON"
def restore()
+ ssh_config = ''
json = ''
while str = $stdin.gets
json << str
end
configs = JSON.parse(json)