lib/rest-ftp-daemon/api/jobs.rb in rest-ftp-daemon-0.230.3 vs lib/rest-ftp-daemon/api/jobs.rb in rest-ftp-daemon-0.231.0
- old
+ new
@@ -79,18 +79,18 @@
optional :notify, type: String, desc: "URL to get POST'ed notifications back"
optional :priority, type: Integer, desc: "Priority level of the job (lower is stronger)"
optional :overwrite,
type: Boolean,
desc: "Overwrites files at target server",
- default: Settings.transfer[:overwrite]
+ default: Settings.at(:transfer, :overwrite)
optional :mkdir,
type: Boolean,
desc: "Create missing directories on target server",
- default: Settings.transfer[:mkdir]
+ default: Settings.at(:transfer, :mkdir)
optional :tempfile,
type: Boolean,
desc: "Upload to a temp file before renaming it to the target filename",
- default: Settings.transfer[:tempfile]
+ default: Settings.at(:transfer, :tempfile)
end
post "/" do
log_info "POST /jobs", params
log_debug params.to_json