Permalink
Browse files

fixed shared tasks bug

  • Loading branch information...
everzet committed Jun 5, 2010
1 parent c9a57f1 commit f75ca8340ec61d4dd243379dac62cba8518ca0ed
Showing with 7 additions and 7 deletions.
  1. +7 −7 lib/capifony.rb
View
@@ -269,36 +269,36 @@ def load_database_config(data, env = 'prod')
namespace :database do
desc "Download config/databases.yml from remote server"
task :to_local do
- download("#{shared_path}/config/databases.yml", "config/databases.yml", :via => :scp, :recursive => true)
+ download("#{shared_path}/config/databases.yml", "config/databases.yml", :via => :scp)
end
desc "Upload config/databases.yml to remote server"
task :to_remote do
- upload("config/databases.yml", "#{shared_path}/config/databases.yml", :via => :scp, :recursive => true)
+ upload("config/databases.yml", "#{shared_path}/config/databases.yml", :via => :scp)
end
end
- namespace :logs do
+ namespace :log do
desc "Download all logs from remote folder to local one"
task :to_local do
- download("#{shared_path}/log", "log", :via => :scp, :recursive => true)
+ download("#{shared_path}/log", "./", :via => :scp, :recursive => true)
end
desc "Upload all logs from local folder to remote one"
task :to_remote do
- upload("log", "#{shared_path}/log", :via => :scp, :recursive => true)
+ upload("log", "#{shared_path}/", :via => :scp, :recursive => true)
end
end
namespace :uploads do
desc "Download all files from remote web/uploads folder to local one"
task :to_local do
- download("#{shared_path}/web/uploads", "web/uploads", :via => :scp, :recursive => true)
+ download("#{shared_path}/web/uploads", "web", :via => :scp, :recursive => true)
end
desc "Upload all files from local web/uploads folder to remote one"
task :to_remote do
- upload("web/uploads", "#{shared_path}/web/uploads", :via => :scp, :recursive => true)
+ upload("web/uploads", "#{shared_path}/web", :via => :scp, :recursive => true)
end
end
end

0 comments on commit f75ca83

Please sign in to comment.