conjur-asset-host-factory 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -2
- data/lib/conjur-asset-host-factory-version.rb +1 -1
- data/lib/conjur/command/host_factories.rb +0 -5
- data/lib/conjur/host_factory_token.rb +1 -7
- 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: 98117472778f65b84d355c47e36550afc220d5eb
|
4
|
+
data.tar.gz: 736072e96ccd467aef7cd708762f1fc2a54f4c61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13586c1255eb1b5228f368b0f93cfd10d12a21c151a5eb389e2e109980569c488a49a35cecbe62e1983e7dde10a39e250fed15b4fb0cfa76f1729b4c1ddec693
|
7
|
+
data.tar.gz: 3f94e10343f0420f6ac77962c42fd0be39353baf79f21c8d809229acd1853037cf70504328447b58b5c68926b0946544b681d7e6eeb770afadf839ce30c75a1b
|
data/CHANGELOG.md
CHANGED
@@ -99,10 +99,6 @@ By default, this command creates one token. Optionally, it can be used to create
|
|
99
99
|
c.arg_name "count"
|
100
100
|
c.desc "Number of identical tokens to create"
|
101
101
|
c.flag [:c, :count]
|
102
|
-
|
103
|
-
c.arg_name "max-uses"
|
104
|
-
c.desc "Maximum number of times which the token can be used"
|
105
|
-
c.flag [:m, :"max-uses"]
|
106
102
|
|
107
103
|
c.action do |global_options,options,args|
|
108
104
|
id = require_arg(args, 'hostfactory')
|
@@ -119,7 +115,6 @@ By default, this command creates one token. Optionally, it can be used to create
|
|
119
115
|
expiration = Time.now + duration
|
120
116
|
count = (options[:count] || 1).to_i
|
121
117
|
command_options = {}
|
122
|
-
command_options[:max_uses] = options[:"max-uses"].to_i if options[:"max-uses"]
|
123
118
|
|
124
119
|
tokens = api.host_factory(id).create_tokens expiration, count, command_options
|
125
120
|
display tokens.map(&:to_json)
|
@@ -23,9 +23,7 @@ module Conjur
|
|
23
23
|
include HasAttributes
|
24
24
|
|
25
25
|
def to_json(options = {})
|
26
|
-
{ token: token, expiration: expiration }
|
27
|
-
h[:max_uses] = max_uses if max_uses
|
28
|
-
end
|
26
|
+
{ token: token, expiration: expiration }
|
29
27
|
end
|
30
28
|
|
31
29
|
def token
|
@@ -38,10 +36,6 @@ module Conjur
|
|
38
36
|
DateTime.iso8601(attributes['expiration'])
|
39
37
|
end
|
40
38
|
|
41
|
-
def max_uses
|
42
|
-
attributes['max_uses']
|
43
|
-
end
|
44
|
-
|
45
39
|
def host_factory
|
46
40
|
Conjur::HostFactory.new(Conjur::API.host_factory_asset_host, options)[fully_escape attributes['host_factory']['id']]
|
47
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conjur-asset-host-factory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Gilpin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: conjur-api
|