Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed :failure transfer key.

  • Loading branch information...
commit 33929c2dbcb9168318c0c7fbf70e9a995b414e00 1 parent 7c8dbc4
quaternion authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  lib/transfer.rb
View
3  lib/transfer.rb
@@ -22,7 +22,6 @@ def configure name = :default, &block
def configs
@configs ||= Hash.new {|hash, key| raise "config #{key} not exists" }
end
-
end
@@ -38,7 +37,7 @@ def transfer *args, &block
when Transfer::Config
raise ArgumentError.new("second argument should be Hash!") unless args[1].instance_of?(Hash)
config, options = args[0], args[1]
- process_keys = [:validate, :failure_strategy, :failure]
+ process_keys = [:validate, :failure_strategy]
process_options = config.process_options.merge options.select{|key| process_keys.include?(key) }
sources = options.select{|key| !process_keys.include?(key) }
sources.each do |key, value|
Please sign in to comment.
Something went wrong with that request. Please try again.