diff --git a/lib/capistrano/tasks/wpdb.rake b/lib/capistrano/tasks/wpdb.rake index bc0c8a6..f433040 100644 --- a/lib/capistrano/tasks/wpdb.rake +++ b/lib/capistrano/tasks/wpdb.rake @@ -124,7 +124,7 @@ namespace :wpcli do on roles(:web) do within release_path do execute :wp, :db, :export, "- |", :gzip, ">", fetch(:wpcli_remote_db_file) - download! fetch(:wpcli_remote_db_file), Pathname.new(fetch(:wpcli_local_db_backup_dir)).join(fetch(:wpcli_local_db_backup_filename)) + download! fetch(:wpcli_remote_db_file), File.join(fetch(:wpcli_local_db_backup_dir), fetch(:wpcli_local_db_backup_filename)) execute :rm, fetch(:wpcli_remote_db_file) end end @@ -134,7 +134,7 @@ namespace :wpcli do task :local do run_locally do set :stage, :local - execute :wp, :db, :export, "- |", :gzip, ">", Pathname.new(fetch(:wpcli_local_db_backup_dir)).join(fetch(:wpcli_local_db_backup_filename)) + execute :wp, :db, :export, "- |", :gzip, ">", File.join(fetch(:wpcli_local_db_backup_dir), fetch(:wpcli_local_db_backup_filename)) end end @@ -144,4 +144,4 @@ namespace :wpcli do end end -end \ No newline at end of file +end