lib/xfrtuc.rb in xfrtuc-0.0.10 vs lib/xfrtuc.rb in xfrtuc-0.0.11
- old
+ new
@@ -103,14 +103,10 @@
[ :from_type, :from_url, :to_type, :to_url ].each { |key| opts.delete key }
from_name = opts.delete :from_name
to_name = opts.delete :to_name
log_input_url = opts.delete :log_input_url
num_keep = opts.delete :num_keep
- from_bastion_host = opts.delete :from_bastion_host
- from_bastion_key = opts.delete :from_bastion_key
- to_bastion_host = opts.delete :to_bastion_host
- to_bastion_key = opts.delete :to_bastion_key
unless opts.empty?
raise ArgumentError, "Unsupported option(s): #{opts.keys}"
end
payload = {
@@ -121,13 +117,9 @@
to_url: to_url,
to_name: to_name
}
payload.merge!(log_input_url: log_input_url) unless log_input_url.nil?
payload.merge!(num_keep: num_keep) unless num_keep.nil?
- payload.merge!(from_bastion_host: from_bastion_host) unless from_bastion_host.nil?
- payload.merge!(from_bastion_key: from_bastion_key) unless from_bastion_key.nil?
- payload.merge!(to_bastion_host: to_bastion_host) unless to_bastion_host.nil?
- payload.merge!(to_bastion_key: to_bastion_key) unless to_bastion_key.nil?
client.post("/transfers", payload)
end
def delete(id)
client.delete("/transfers/#{URI.encode(id)}")