conjur-asset-layer-api 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/conjur/command/layers.rb +48 -0
- data/lib/conjur-asset-layer-version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2508286ad920028ad7ff4b1ebf42157e04e1a723
|
4
|
+
data.tar.gz: 03a85126384297b4701bdafa56f03742d2497d89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2014-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: conjur-api
|