lib/milc/base.rb in milc-0.1.3 vs lib/milc/base.rb in milc-0.1.4

- old
+ new

@@ -26,11 +26,12 @@ def logger Milc.logger end - def execute(cmd) - res = LoggerPipe.run(logger, cmd, dry_run: Milc.dry_run) + def execute(cmd, options = {}) + options[:dry_run] = Milc.dry_run + res = LoggerPipe.run(logger, cmd, options) block_given? ? yield(res) : res end def load_from_yaml(yaml_path) @config = YAML.load_file_with_erb(yaml_path)