conjur-asset-layer-api 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 853a45d093df1a1e66a39260675fca8ac7609fa5
4
- data.tar.gz: a94f600089afcd7f5f21bb3bac58e7ef9f62c40e
3
+ metadata.gz: 2508286ad920028ad7ff4b1ebf42157e04e1a723
4
+ data.tar.gz: 03a85126384297b4701bdafa56f03742d2497d89
5
5
  SHA512:
6
- metadata.gz: 9657e2256017c96518c5f3b54be4d2558e6079c35a5f881f780ff70da56706d20e5f5cdb0f2498967f8135c55dd8e3e1ec2c33cc1eadef59eeef456ff48be48a
7
- data.tar.gz: 2064dd14a6b7fcc9fd0310bdf8a00d35e6e743438c4a8398f717284104a632c50532ef8a1b02bce807b06e0d504f503f4d255d80e82f75f0f96770466af4dfe3
6
+ metadata.gz: 79d9651c0c2b4f6cedd334ae40bd55fffc8ba67af75b73069e3e77eea4ac1fc2c85e71f7adf6b2222e58bb6b6cf72172e20f89de41c4597ac491f78997a1552d
7
+ data.tar.gz: 23e4a963dd008f2a4ebd706158100abe3a3769b3aec03a034417e9b32b6bce38107448acccb552a3a335dd5113899d0d96619f807ceef367bc3c28526f9efc17
@@ -13,6 +13,50 @@ class Conjur::Command::Layers < Conjur::Command
13
13
  hostid
14
14
  end
15
15
 
16
+ desc "Create a new layer"
17
+ arg_name "id"
18
+ command :create do |c|
19
+ acting_as_option(c)
20
+
21
+ c.action do |global_options,options,args|
22
+ id = require_arg(args, 'id')
23
+
24
+ layer = api.create_layer(id, options)
25
+ display(layer, options)
26
+ end
27
+ end
28
+
29
+ desc "List layers"
30
+ command :list do |c|
31
+ command_options_for_list c
32
+
33
+ c.action do |global_options, options, args|
34
+ command_impl_for_list global_options, options.merge(kind: "layer"), args
35
+ end
36
+ end
37
+
38
+ desc "Show a layer"
39
+ arg_name "id"
40
+ command :show do |c|
41
+ c.action do |global_options,options,args|
42
+ id = require_arg(args, 'id')
43
+ display(api.layer(id), options)
44
+ end
45
+ end
46
+
47
+ desc "Lists all direct members of the layer. The membership list is not recursively expanded."
48
+ arg_name "layer"
49
+ command "members" do |c|
50
+ c.desc "Verbose output"
51
+ c.switch [:V,:verbose]
52
+
53
+ c.action do |global_options,options,args|
54
+ layer = require_arg(args, 'layer')
55
+
56
+ display_members api.layer(layer).members, options
57
+ end
58
+ end
59
+
16
60
  desc "Provision a layer by creating backing resources in an IaaS / PaaS system"
17
61
  arg_name "layer"
18
62
  command :provision do |c|
@@ -44,6 +88,8 @@ class Conjur::Command::Layers < Conjur::Command
44
88
  layer.aws_bucket_name = bucket
45
89
  layer.aws_credentialid = credential
46
90
  layer.provision
91
+
92
+ puts "Layer provisioned by #{provisioner}"
47
93
  end
48
94
  end
49
95
 
@@ -55,6 +101,7 @@ class Conjur::Command::Layers < Conjur::Command
55
101
  hostid = require_hostid_arg(args)
56
102
 
57
103
  api.layer(id).add_host hostid
104
+ puts "Host added"
58
105
  end
59
106
  end
60
107
 
@@ -66,6 +113,7 @@ class Conjur::Command::Layers < Conjur::Command
66
113
  hostid = require_hostid_arg(args)
67
114
 
68
115
  api.layer(id).remove_host hostid
116
+ puts "Host removed"
69
117
  end
70
118
  end
71
119
  end
@@ -1,7 +1,7 @@
1
1
  module Conjur
2
2
  module Asset
3
3
  module Layer
4
- VERSION = "0.5.0"
4
+ VERSION = "0.6.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conjur-asset-layer-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Gilpin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-20 00:00:00.000000000 Z
11
+ date: 2014-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: conjur-api