lib/remi/job.rb in remi-0.2.14 vs lib/remi/job.rb in remi-0.2.15
- old
+ new
@@ -5,10 +5,10 @@
attr_accessor :sources
attr_accessor :targets
attr_accessor :transforms
def define_param(key, value)
- @params ||= {}
+ @params ||= Hash.new { |h, key| raise "Parameter #{key} is not defined" }
@params[key] = value
end
def define_source(name, type_class, **options)
@sources ||= []