lib/rcoli/model.rb in rcoli-0.7.0 vs lib/rcoli/model.rb in rcoli-0.7.1
- old
+ new
@@ -222,9 +222,13 @@
# enable dev mode
if (result.options['dev-mode'])
ApplicationContext.instance.devmode = true
end
+ if (result.options['debug'])
+ ApplicationContext.instance.debug = true
+ end
+
# execution of the pre block
context.instance_exec(result.options, result.arguments, &@pre_action) if (@pre_action and !result.command.value_of_skip_pre)
# execution of the main block
context.instance_exec(result.options, result.arguments, &action)
# execution of the post block
\ No newline at end of file