lib/milc/gcloud/backend/gcloud_command.rb in milc-0.1.3 vs lib/milc/gcloud/backend/gcloud_command.rb in milc-0.1.4
- old
+ new
@@ -7,11 +7,12 @@
module Milc
module Gcloud
module Backend
class GcloudCommand
- def execute(cmd)
- res = LoggerPipe.run(Milc.logger, cmd, dry_run: Milc.dry_run)
+ def execute(cmd, options = {})
+ options[:dry_run] = Milc.dry_run
+ res = LoggerPipe.run(Milc.logger, cmd, options)
block_given? ? yield(res) : res
end
end
end