conjur-asset-key-pair-api 0.2.2 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/conjur-asset-key-pair-version.rb +1 -1
- data/lib/conjur/api/key_pairs.rb +2 -2
- data/lib/conjur/key-pair-api.rb +4 -8
- 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: 99b1909875a99d81ecc7a3133c51a30506e70031
|
4
|
+
data.tar.gz: 5c501e5db56cddf778a25d7fd3b3b953d4be2714
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39b9b77cfdf1326e449a7727c74b94c6af84739f803f294c2ac8f83838d52677652e88359f0d668a3870a3935d5ec003862cbad9ae449e3494dab8368ac9823a
|
7
|
+
data.tar.gz: e45d8165d807c46ec06a627beb6451f014d6413266e4f07b04bc547c65e63c90b7b95a1d3e38e1dfdc71c1449851360b57faaee2503e3edf42bb6baa36db2898
|
data/lib/conjur/api/key_pairs.rb
CHANGED
@@ -3,11 +3,11 @@ require 'conjur/key_pair'
|
|
3
3
|
module Conjur
|
4
4
|
class API
|
5
5
|
def create_key_pair(options = {})
|
6
|
-
standard_create Conjur::
|
6
|
+
standard_create Conjur::API.key_pair_asset_host, :key_pair, nil, options
|
7
7
|
end
|
8
8
|
|
9
9
|
def key_pair id
|
10
|
-
standard_show Conjur::
|
10
|
+
standard_show Conjur::API.key_pair_asset_host, :key_pair, id
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
data/lib/conjur/key-pair-api.rb
CHANGED
@@ -1,11 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
def host
|
6
|
-
ENV['CONJUR_KEY_PAIR_URL'] || Conjur::Core::API.host
|
7
|
-
end
|
8
|
-
end
|
1
|
+
class Conjur::API
|
2
|
+
class << self
|
3
|
+
def key_pair_asset_host
|
4
|
+
ENV["CONJUR_KEY_PAIR_ASSET_URL"] || Conjur::Core::API.host
|
9
5
|
end
|
10
6
|
end
|
11
7
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conjur-asset-key-pair-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Gilpin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: conjur-api
|