Sha256: d76bfae9513d39443baeb272515fa54e96fb25c65b0f8bf09332b9eff5820d73
Contents?: true
Size: 1.31 KB
Versions: 2
Compression:
Stored size: 1.31 KB
Contents
require 'conjur/command' class Conjur::Command::Deployments < Conjur::Command self.prefix = :deployment desc "Add a host to an deployment" arg_name "deployment host" command :"hosts:add" do |c| c.action do |global_options, options, args| id = require_arg(args, 'deployment') hostid = require_arg(args, 'host') api.deployment(id).add_host hostid end end desc "Remove a host from an deployment" arg_name "deployment host" command :"hosts:remove" do |c| c.action do |global_options, options, args| id = require_arg(args, 'deployment') hostid = require_arg(args, 'host') api.deployment(id).remove_host hostid end end desc "Add a child deployment to a deployment" arg_name "deployment child" command :"children:add" do |c| c.action do |global_options, options, args| id = require_arg(args, 'deployment') childid = require_arg(args, 'child') api.deployment(id).add_child childid end end desc "Remove a child deployment from a deployment" arg_name "deployment child" command :"children:remove" do |c| c.action do |global_options, options, args| id = require_arg(args, 'deployment') childid = require_arg(args, 'child') api.deployment(id).remove_child childid end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
conjur-asset-deployment-api-0.2.2 | lib/conjur/command/deployments.rb |
conjur-asset-deployment-api-0.2.1 | lib/conjur/command/deployments.rb |