conjur-asset-layer-api 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/conjur-asset-layer.gemspec +1 -0
- data/lib/conjur-asset-layer-version.rb +1 -1
- data/lib/conjur/command/layers.rb +1 -1
- data/lib/conjur/layer.rb +2 -0
- 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: 75c346bdbbbec93a6f0cf0e089bf17c8f21bc5a4
|
4
|
+
data.tar.gz: e2f4155db409c0e607d8f7fe6a76136c3797f8bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8a00cc6e4dd4140e7e83e1ab92ae98a8b76db8a5f4b9218b4a97827058387e764ce4bd01d1b852c3bf340c434629c30c00f487caf2ad35c0a1f260b6429f7e6
|
7
|
+
data.tar.gz: 61b0dde9e21e3e97cd189407464da496ece39d8b644265529c5a89471dc6a359cfd140a81ab6f977ed71cfe93e9984b2311e8856914bb0a21a4598aa4a3d774b
|
data/conjur-asset-layer.gemspec
CHANGED
@@ -43,6 +43,7 @@ Gem::Specification.new do |s|
|
|
43
43
|
s.add_development_dependency "rake"
|
44
44
|
|
45
45
|
unless ENV['API_ONLY']
|
46
|
+
s.add_development_dependency "tzinfo"
|
46
47
|
s.add_development_dependency "authable"
|
47
48
|
s.add_development_dependency "rails-api"
|
48
49
|
s.add_development_dependency "talentbox-sequel-rails"
|
@@ -13,7 +13,7 @@ class Conjur::Command::Layers < Conjur::Command
|
|
13
13
|
hostid
|
14
14
|
end
|
15
15
|
|
16
|
-
desc "Add a host to an layer"
|
16
|
+
desc "Add a host to an layer (note: host id should be provided in fully-qualified format, i.e. <conjur_account>:host:<id>)"
|
17
17
|
arg_name "layer host"
|
18
18
|
command :"hosts:add" do |c|
|
19
19
|
c.action do |global_options, options, args|
|
data/lib/conjur/layer.rb
CHANGED
@@ -4,6 +4,7 @@ module Conjur
|
|
4
4
|
include ActsAsRole
|
5
5
|
|
6
6
|
def add_host(hostid)
|
7
|
+
hostid = cast(hostid, :roleid)
|
7
8
|
log do |logger|
|
8
9
|
logger << "Adding host #{hostid} to layer #{id}"
|
9
10
|
end
|
@@ -13,6 +14,7 @@ module Conjur
|
|
13
14
|
end
|
14
15
|
|
15
16
|
def remove_host(hostid)
|
17
|
+
hostid = cast(hostid, :roleid)
|
16
18
|
log do |logger|
|
17
19
|
logger << "Removing host #{hostid} from layer #{id}"
|
18
20
|
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.3.
|
4
|
+
version: 0.3.1
|
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-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: conjur-api
|