Class: Milc::Gcloud::Backend::GcloudCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/milc/gcloud/backend/gcloud_command.rb

Instance Method Summary collapse

Instance Method Details

#execute(cmd, options = {}) ⇒ Object



12
13
14
15
16
# File 'lib/milc/gcloud/backend/gcloud_command.rb', line 12

def execute(cmd, options = {})
  options[:dry_run] = Milc.dry_run
  res = LoggerPipe.run(Milc.logger, cmd, options)
  block_given? ? yield(res) : res
end