lib/rcoli/utils.rb in rcoli-0.7.0 vs lib/rcoli/utils.rb in rcoli-0.7.1

- old
+ new

@@ -11,10 +11,11 @@ attr_accessor :debug attr_accessor :devmode def initialize @devmode = false + @debug = false end end class Log @@ -93,9 +94,13 @@ RCoLi::Log.instance.logger end def dev_mode? RCoLi::ApplicationContext.instance.devmode +end + +def debug? + RCoLi::ApplicationContext.instance.debug end def sysexec(command, *args) halt_on_error = false args.each do |arg|