Skip to content

Commit

Permalink
Changed Pathname with File on backup tasks (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
sacrom authored and jeremyzahner committed Oct 25, 2016
1 parent 72ef294 commit 06de3d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/capistrano/tasks/wpdb.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand All @@ -144,4 +144,4 @@ namespace :wpcli do

end
end
end
end

0 comments on commit 06de3d6

Please sign in to comment.