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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: acc127b9218891b69580933aec771d026b37005e
4
- data.tar.gz: 0fdd8eaa9bb1494726e42fa94c25c1fc85ea9e93
3
+ metadata.gz: 75c346bdbbbec93a6f0cf0e089bf17c8f21bc5a4
4
+ data.tar.gz: e2f4155db409c0e607d8f7fe6a76136c3797f8bf
5
5
  SHA512:
6
- metadata.gz: 39fecb5bc2003550c6d9eb32fc8487bca62fdee23d8f75270515cf72383ec262be7ed93d4be10775dd6cfb5b261c165808ab5aa9520bab0d3e31aa1e70b382a2
7
- data.tar.gz: 855ccf1780d480b63f0b84533d2d3e0d9ce40dddb8c76bb7f2c279e0424c25db5ba485c2539dd17df7e06a02403368f380c9f4510fa324c41639a50350ff08ed
6
+ metadata.gz: b8a00cc6e4dd4140e7e83e1ab92ae98a8b76db8a5f4b9218b4a97827058387e764ce4bd01d1b852c3bf340c434629c30c00f487caf2ad35c0a1f260b6429f7e6
7
+ data.tar.gz: 61b0dde9e21e3e97cd189407464da496ece39d8b644265529c5a89471dc6a359cfd140a81ab6f977ed71cfe93e9984b2311e8856914bb0a21a4598aa4a3d774b
@@ -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"
@@ -1,7 +1,7 @@
1
1
  module Conjur
2
2
  module Asset
3
3
  module Layer
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
6
6
  end
7
7
  end
@@ -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.0
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-01-14 00:00:00.000000000 Z
11
+ date: 2014-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: conjur-api