lib/docman/commands/command.rb in docman-0.0.25 vs lib/docman/commands/command.rb in docman-0.0.26
- old
+ new
@@ -74,9 +74,10 @@
end
def run_actions(name)
if @hooks.has_key? name
@hooks[name].each do |hook|
+ next if hook.has_key?('run_on_success_only') and hook['run_on_success_only'] and not @execute_result
context = hook.has_key?('context') ? hook['context'] : @context
Docman::Command.create(hook, context, self).perform
end
end
end
\ No newline at end of file