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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40fd3a58648cb61fd90484dd3d4d8c5eb8f6a540
4
- data.tar.gz: 67cbd4501e0b14d74b8a11bf07d666b764f6f4d1
3
+ metadata.gz: 98117472778f65b84d355c47e36550afc220d5eb
4
+ data.tar.gz: 736072e96ccd467aef7cd708762f1fc2a54f4c61
5
5
  SHA512:
6
- metadata.gz: 7777486d9bb265fa2dbf8a39909f33bc739e0aa853322f44765502727c6623b0593f893e8602c06eff5f7b62e883116008b106ff327ca238587177bfa0e25bb8
7
- data.tar.gz: d76b12fd651508487fc204b15301fae9d2952e7461b98aa3cde2541b45f30ff4720f36cb803edc5de7259ad26bb2773532c1409870e3bbf4339f0b8d5d83c11c
6
+ metadata.gz: 13586c1255eb1b5228f368b0f93cfd10d12a21c151a5eb389e2e109980569c488a49a35cecbe62e1983e7dde10a39e250fed15b4fb0cfa76f1729b4c1ddec693
7
+ data.tar.gz: 3f94e10343f0420f6ac77962c42fd0be39353baf79f21c8d809229acd1853037cf70504328447b58b5c68926b0946544b681d7e6eeb770afadf839ce30c75a1b
@@ -1,4 +1,7 @@
1
- # v1.1.2
1
+ # v1.1.3
2
+
3
+ * Revert max-uses as it is not implemented server-side.
2
4
 
3
- * Add max-uses flag for token creation
5
+ # v1.1.2
4
6
 
7
+ * Add max-uses flag for token creation.
@@ -21,7 +21,7 @@
21
21
  module Conjur
22
22
  module Asset
23
23
  module HostFactory
24
- VERSION = "1.1.2"
24
+ VERSION = "1.1.3"
25
25
  end
26
26
  end
27
27
  end
@@ -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 }.tap do |h|
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.2
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-26 00:00:00.000000000 Z
11
+ date: 2015-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: conjur-api