lib/kumogata/post_processing.rb in kumogata-0.4.3 vs lib/kumogata/post_processing.rb in kumogata-0.4.4
- old
+ new
@@ -23,10 +23,10 @@
_post.fetch(:commands).each do |name, attrs|
unless attrs.kind_of?(Hash) and attrs['command']
raise "Invalid post processing: #{name} => #{attrs.inspect}"
end
- timing = [(attrs['after'] || TRIGGER_TIMING)].flatten.map {|i| i.to_sym }
+ timing = [(attrs['after'] || [:create])].flatten.map {|i| i.to_sym }
command = attrs['command']
validate_timing(name, timing)
validate_command_template(name, command, outputs)