lib/rcoli/utils.rb in rcoli-0.6.1 vs lib/rcoli/utils.rb in rcoli-0.6.2

- old
+ new

@@ -7,10 +7,11 @@ class ApplicationContext include Singleton attr_accessor :debug + attr_accessor :modedev end class Log @@ -70,10 +71,10 @@ # cmnd = cmnd.sub(m[0], context) if context.is_a? String # end log.debug("EXEC: #{cmnd}") - system(cmnd) + system(cmnd) unless ApplicationContext.instance.modedev else raise ApplicationError, "The command #{command} isn't configured. Check the file #{@source}" end end