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) ⇒ Object



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

def execute(cmd)
  res = LoggerPipe.run(Milc.logger, cmd, dry_run: Milc.dry_run)
  block_given? ? yield(res) : res
end