lib/rcoli/model.rb in rcoli-0.6.1 vs lib/rcoli/model.rb in rcoli-0.6.2
- old
+ new
@@ -213,9 +213,14 @@
context.instance_exec do
log.level = Logger::DEBUG
end
end
+ # enable dev mode
+ if (result.global_options['mode-dev'])
+ ApplicationContext.instance.modedev = true
+ end
+
# execution of the pre block
context.instance_exec(result.global_options, 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.global_options, result.options, result.arguments, &action)
# execution of the post block
\ No newline at end of file