Sha256: 27b36c479f11e91d187ff7f4389d66dccabdc32a86f8cf0ea550969004e4ca9e

Contents?: true

Size: 326 Bytes

Versions: 4

Compression:

Stored size: 326 Bytes

Contents

require "milc/gcloud/backend"

require 'logger'

require 'logger_pipe'

module Milc
  module Gcloud
    module Backend
      class GcloudCommand

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

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
milc-0.1.3 lib/milc/gcloud/backend/gcloud_command.rb
milc-0.1.2 lib/milc/gcloud/backend/gcloud_command.rb
milc-0.1.1 lib/milc/gcloud/backend/gcloud_command.rb
milc-0.1.0 lib/milc/gcloud/backend/gcloud_command.rb