conjur-asset-environment-api 0.2.4 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8009c2fd407865150b195ad5d41ff866fb377c23
|
|
4
|
+
data.tar.gz: 044843145b1be13e21facd94a9aabf40f8e6f70f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c113be320f49eb8e46f8c521f6923f080c92c3209a001837f1ae41b49072c1726fc2a37ba8ab22b546e953622e700d71becf0615caf0217c9b006d8af5d7817
|
|
7
|
+
data.tar.gz: d51aa2c8ade610693fc899749c45614c6281e7d14520fedebb10c03f4af298836ef67c1576520b734e65ecb234734e25cfc051ff942343dd8228d84bdd8c8aa2
|
|
@@ -3,15 +3,15 @@ require 'conjur/environment'
|
|
|
3
3
|
module Conjur
|
|
4
4
|
class API
|
|
5
5
|
def create_environment(id, options = {})
|
|
6
|
-
standard_create Conjur::
|
|
6
|
+
standard_create Conjur::API.environment_asset_host, :environment, id, options
|
|
7
7
|
end
|
|
8
8
|
|
|
9
9
|
def environments(options = {})
|
|
10
|
-
standard_list Conjur::
|
|
10
|
+
standard_list Conjur::API.environment_asset_host, :environment, options
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def environment id
|
|
14
|
-
standard_show Conjur::
|
|
14
|
+
standard_show Conjur::API.environment_asset_host, :environment, id
|
|
15
15
|
end
|
|
16
16
|
end
|
|
17
17
|
end
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
def host
|
|
6
|
-
ENV['CONJUR_ENVIRONMENT_URL'] || Conjur::Core::API.host
|
|
7
|
-
end
|
|
8
|
-
end
|
|
1
|
+
class Conjur::API
|
|
2
|
+
class << self
|
|
3
|
+
def environment_asset_host
|
|
4
|
+
ENV["CONJUR_ENVIRONMENT_ASSET_URL"] || Conjur::Core::API.host
|
|
9
5
|
end
|
|
10
6
|
end
|
|
11
7
|
end
|
data/lib/conjur/environment.rb
CHANGED
|
@@ -16,7 +16,7 @@ module Conjur
|
|
|
16
16
|
logger << "Removing variable #{name} from enviroment #{id}"
|
|
17
17
|
end
|
|
18
18
|
invalidate do
|
|
19
|
-
RestClient::Resource.new(self["variables/#{
|
|
19
|
+
RestClient::Resource.new(self["variables/#{fully_escape name}"].url, self.options).delete
|
|
20
20
|
end
|
|
21
21
|
end
|
|
22
22
|
|
|
@@ -29,7 +29,7 @@ module Conjur
|
|
|
29
29
|
def variables
|
|
30
30
|
{}.tap do |result|
|
|
31
31
|
attributes['variables'].inject(result) do |memo,v|
|
|
32
|
-
memo[v[0]] = Conjur::Variable.new(Conjur::Core::API.host, self.options)["variables/#{
|
|
32
|
+
memo[v[0]] = Conjur::Variable.new(Conjur::Core::API.host, self.options)["variables/#{fully_escape v[1]}"]
|
|
33
33
|
memo
|
|
34
34
|
end
|
|
35
35
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: conjur-asset-environment-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.6
|
|
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
|