lib/climatic/utils/safe_exec.rb in climatic-0.2.34 vs lib/climatic/utils/safe_exec.rb in climatic-0.2.35
- old
+ new
@@ -2,10 +2,10 @@
module Utils
module SafeExec
def safely_exec_code(*args, message: nil, &block)
- if self.config[:simulate]
+ if Climatic.config[:simulate]
Climatic.logger.puts_and_logs "[SIMULATION MODE]: #{message}" unless message.nil?
else
Climatic.logger.puts_and_logs message
block.call *args
end
\ No newline at end of file