Sha256: 9614cd77091cb38f49efedac98eed9d927aeb1edd8056e0b047e6374b0938679

Contents?: true

Size: 329 Bytes

Versions: 8

Compression:

Stored size: 329 Bytes

Contents

require "milc/dsl"

module Milc::Dsl
  module Mgcloud

    def mgcloud(cmd, attrs = {}, &block)
      service, resource, action, cmd_args = cmd.lstrip.split(/\s+/, 4)
      resource = Milc::Gcloud::Resource.lookup(project, service, resource)
      resource.send(action.gsub(/-/, '_'), cmd_args, attrs, &block)
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
milc-0.2.2 lib/milc/dsl/mgcloud.rb
milc-0.2.1 lib/milc/dsl/mgcloud.rb
milc-0.2.0 lib/milc/dsl/mgcloud.rb
milc-0.1.4 lib/milc/dsl/mgcloud.rb
milc-0.1.3 lib/milc/dsl/mgcloud.rb
milc-0.1.2 lib/milc/dsl/mgcloud.rb
milc-0.1.1 lib/milc/dsl/mgcloud.rb
milc-0.1.0 lib/milc/dsl/mgcloud.rb