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