continuum-stager-api 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/apcera-stager-api-contrib.gemspec +1 -1
- data/lib/apcera/stager/stager.rb +8 -8
- data/spec/fixtures/cassettes/dependencies_add.yml +1 -1
- data/spec/fixtures/cassettes/dependencies_remove.yml +1 -1
- data/spec/fixtures/cassettes/environment_add.yml +1 -1
- data/spec/fixtures/cassettes/environment_remove.yml +1 -1
- data/spec/fixtures/cassettes/invalid/dependencies_add.yml +1 -1
- data/spec/fixtures/cassettes/invalid/dependencies_remove.yml +1 -1
- data/spec/fixtures/cassettes/invalid/environment_add.yml +1 -1
- data/spec/fixtures/cassettes/invalid/environment_remove.yml +1 -1
- data/spec/fixtures/cassettes/invalid/provides_add.yml +1 -1
- data/spec/fixtures/cassettes/invalid/provides_remove.yml +1 -1
- data/spec/fixtures/cassettes/invalid/templates_add.yml +1 -1
- data/spec/fixtures/cassettes/invalid/templates_remove.yml +1 -1
- data/spec/fixtures/cassettes/provides_add.yml +1 -1
- data/spec/fixtures/cassettes/provides_remove.yml +1 -1
- data/spec/fixtures/cassettes/templates_add.yml +1 -1
- data/spec/fixtures/cassettes/templates_remove.yml +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8397c207ff012d3a21c39caaf0c8831173f9860
|
4
|
+
data.tar.gz: 82da84b55827b2b4ec29b1f2a1d30971ba5891e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01dc3b2af39d1d59cc942e435aa3a9bba2997ecc052d83318060a88fda4197fabb2b1edd8682ef7b5f2abe5487e32f59aced4ba8623faf8ddbfa97c569e7134c
|
7
|
+
data.tar.gz: 24c2214f6dccbcc8955d5d97fd3cf1d29d63eaa433b79e19654dff2af480f9ca4ea178d123c6a00b8baf8c9caa48df3bc383f8a8e3f44edb760c09fce1b86bbe
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.test_files = `git ls-files -- {spec}/*`.split("\n")
|
16
16
|
gem.name = "continuum-stager-api"
|
17
17
|
gem.require_paths = ["lib"]
|
18
|
-
gem.version = "0.1.
|
18
|
+
gem.version = "0.1.7"
|
19
19
|
|
20
20
|
gem.add_development_dependency 'rspec', '~> 2.6.0'
|
21
21
|
gem.add_development_dependency 'rake'
|
data/lib/apcera/stager/stager.rb
CHANGED
@@ -87,7 +87,7 @@ module Apcera
|
|
87
87
|
|
88
88
|
# Add environment variable to package.
|
89
89
|
def environment_add(key, value)
|
90
|
-
response = RestClient.
|
90
|
+
response = RestClient.put(@stager_url+"/meta", {
|
91
91
|
:resource => "environment",
|
92
92
|
:action => "add",
|
93
93
|
:key => key,
|
@@ -99,7 +99,7 @@ module Apcera
|
|
99
99
|
|
100
100
|
# Delete environment variable from package.
|
101
101
|
def environment_remove(key, value)
|
102
|
-
response = RestClient.
|
102
|
+
response = RestClient.put(@stager_url+"/meta", {
|
103
103
|
:resource => "environment",
|
104
104
|
:action => "remove",
|
105
105
|
:key => key,
|
@@ -111,7 +111,7 @@ module Apcera
|
|
111
111
|
|
112
112
|
# Add provides to package.
|
113
113
|
def provides_add(type, name)
|
114
|
-
response = RestClient.
|
114
|
+
response = RestClient.put(@stager_url+"/meta", {
|
115
115
|
:resource => "provides",
|
116
116
|
:action => "add",
|
117
117
|
:type => type,
|
@@ -123,7 +123,7 @@ module Apcera
|
|
123
123
|
|
124
124
|
# Delete provides from package.
|
125
125
|
def provides_remove(key, value)
|
126
|
-
response = RestClient.
|
126
|
+
response = RestClient.put(@stager_url+"/meta", {
|
127
127
|
:resource => "provides",
|
128
128
|
:action => "remove",
|
129
129
|
:type => type,
|
@@ -138,7 +138,7 @@ module Apcera
|
|
138
138
|
exists = self.meta["dependencies"].detect { |dep| dep["type"] == type && dep["name"] == name }
|
139
139
|
return false if exists
|
140
140
|
|
141
|
-
response = RestClient.
|
141
|
+
response = RestClient.put(@stager_url+"/meta", {
|
142
142
|
:resource => "dependencies",
|
143
143
|
:action => "add",
|
144
144
|
:type => type,
|
@@ -155,7 +155,7 @@ module Apcera
|
|
155
155
|
exists = self.meta["dependencies"].detect { |dep| dep["type"] == type && dep["name"] == name}
|
156
156
|
return false if !exists
|
157
157
|
|
158
|
-
response = RestClient.
|
158
|
+
response = RestClient.put(@stager_url+"/meta", {
|
159
159
|
:resource => "dependencies",
|
160
160
|
:action => "remove",
|
161
161
|
:type => type,
|
@@ -169,7 +169,7 @@ module Apcera
|
|
169
169
|
|
170
170
|
# Add template to package.
|
171
171
|
def templates_add(path, left_delimiter = "{{", right_delimiter = "}}")
|
172
|
-
response = RestClient.
|
172
|
+
response = RestClient.put(@stager_url+"/meta", {
|
173
173
|
:resource => "templates",
|
174
174
|
:action => "add",
|
175
175
|
:path => path,
|
@@ -182,7 +182,7 @@ module Apcera
|
|
182
182
|
|
183
183
|
# Delete template from package.
|
184
184
|
def templates_remove(path, left_delimiter = "{{", right_delimiter = "}}")
|
185
|
-
response = RestClient.
|
185
|
+
response = RestClient.put(@stager_url+"/meta", {
|
186
186
|
:resource => "templates",
|
187
187
|
:action => "remove",
|
188
188
|
:path => path,
|