Skip to content

Commit

Permalink
fix copying downloaded file
Browse files Browse the repository at this point in the history
  • Loading branch information
2called-chaos committed Aug 13, 2022
1 parent 2bf66dd commit 85f0f1e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
### Fixes

* native sftp downloads will immediately stop if worker is cancelled
* fix copying downloaded file (`file` option / `with_copy` example)

-------------------

Expand Down
12 changes: 6 additions & 6 deletions lib/db_sucker/application/sklaven_treiber/worker/accessors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ def copy_file_destination dstfile
d, dt = Time.current.strftime("%Y-%m-%d"), Time.current.strftime("%H-%M-%S")

File.expand_path dstfile.dup
.gsub!(":combined", ":datetime_-_:table")
.gsub!(":datetime", "#{d}_#{dt}")
.gsub!(":date", d)
.gsub!(":time", dt)
.gsub!(":table", table)
.gsub!(":id", sklaventreiber.trxid)
.gsub(":combined", ":datetime_-_:table")
.gsub(":datetime", "#{d}_#{dt}")
.gsub(":date", d)
.gsub(":time", dt)
.gsub(":table", table)
.gsub(":id", sklaventreiber.trxid)
end
end
end
Expand Down

0 comments on commit 85f0f1e

Please sign in to comment.