lib/kalipso/cli.rb in kalipso-0.1.7 vs lib/kalipso/cli.rb in kalipso-0.1.8
- old
+ new
@@ -112,11 +112,11 @@
pathname = Pathname.new(path)
pathname.mkpath unless pathname.exist?
local_site.name = site.name
local_site.path = path
local_site.save
- `rsync -arvH -e "ssh -i #{Jaysus::Local.store_dir.join('keys', 'id_rsa')}" sites@diddlydum.com:/home/sites/#{site.name}/ #{path.gsub(/\/+$/, '')}/`
+ `rsync -arvH -e "ssh -i #{Jaysus::Local.store_dir.join('keys', 'id_rsa')}" sites@calypsoapp.com:/home/sites/#{site.name}/ #{path.gsub(/\/+$/, '')}/`
puts "Site #{name} downloaded to #{path.gsub(/\/+$/, '')}"
else
"Site #{name} not found. Maybe try 'kalipso sync'"
end
end
@@ -133,10 +133,10 @@
end
if site.present?
puts "uploading #{name} from #{path}"
if site.path.present?
puts "uploading #{site.path} to #{site.name}.oncalypso.com"
- command = %Q[rsync -arvH -e "ssh -i #{Jaysus::Local.store_dir.join('keys', 'id_rsa')}" #{site.path.gsub(/\/+$/, '')}/ sites@diddlydum.com:/home/sites/#{site.name}]
+ command = %Q[rsync -arvH -e "ssh -i #{Jaysus::Local.store_dir.join('keys', 'id_rsa')}" #{site.path.gsub(/\/+$/, '')}/ sites@calypsoapp.com:/home/sites/#{site.name}]
`#{command}`
puts "#{site.path} uploaded to http://#{site.name}.oncalypso.com"
else
puts "You need to link this site first"
end
\ No newline at end of file