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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69b8178c6c6ee4e833c557f4c14e71a259a2c3c6
4
- data.tar.gz: f55ca0ef16ccb7be730779eea921131fb2225fee
3
+ metadata.gz: b8397c207ff012d3a21c39caaf0c8831173f9860
4
+ data.tar.gz: 82da84b55827b2b4ec29b1f2a1d30971ba5891e8
5
5
  SHA512:
6
- metadata.gz: 4a5faaf7ce1bcf70eb5527695634867f175e03f994e64eda7cf948e760e14cf6709902c5085d346ac384662b4d85e66d1d8e53d9593121285eeff5245659948b
7
- data.tar.gz: 7fb89de64c02a0dd243739ae72e4a7d8b901d6d1fe3895740ee99e901e72e631cbaf37fdc668e0399e0ac3025b0c5f31b2edd62ee43945bc5c22bdd43b9cd1f3
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.6"
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'
@@ -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.post(@stager_url+"/meta", {
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.post(@stager_url+"/meta", {
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.post(@stager_url+"/meta", {
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.post(@stager_url+"/meta", {
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.post(@stager_url+"/meta", {
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.post(@stager_url+"/meta", {
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.post(@stager_url+"/meta", {
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.post(@stager_url+"/meta", {
185
+ response = RestClient.put(@stager_url+"/meta", {
186
186
  :resource => "templates",
187
187
  :action => "remove",
188
188
  :path => path,
@@ -49,7 +49,7 @@ http_interactions:
49
49
  http_version:
50
50
  recorded_at: Wed, 14 Aug 2013 08:52:04 GMT
51
51
  - request:
52
- method: post
52
+ method: put
53
53
  uri: http://example.com/meta
54
54
  body:
55
55
  encoding: US-ASCII
@@ -49,7 +49,7 @@ http_interactions:
49
49
  http_version:
50
50
  recorded_at: Wed, 14 Aug 2013 08:52:04 GMT
51
51
  - request:
52
- method: post
52
+ method: put
53
53
  uri: http://example.com/meta
54
54
  body:
55
55
  encoding: US-ASCII
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  http_interactions:
3
3
  - request:
4
- method: post
4
+ method: put
5
5
  uri: http://example.com/meta
6
6
  body:
7
7
  encoding: US-ASCII
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  http_interactions:
3
3
  - request:
4
- method: post
4
+ method: put
5
5
  uri: http://example.com/meta
6
6
  body:
7
7
  encoding: US-ASCII
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  http_interactions:
3
3
  - request:
4
- method: post
4
+ method: put
5
5
  uri: http://example.com/meta
6
6
  body:
7
7
  encoding: US-ASCII
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  http_interactions:
3
3
  - request:
4
- method: post
4
+ method: put
5
5
  uri: http://example.com/meta
6
6
  body:
7
7
  encoding: US-ASCII
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  http_interactions:
3
3
  - request:
4
- method: post
4
+ method: put
5
5
  uri: http://example.com/meta
6
6
  body:
7
7
  encoding: US-ASCII
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  http_interactions:
3
3
  - request:
4
- method: post
4
+ method: put
5
5
  uri: http://example.com/meta
6
6
  body:
7
7
  encoding: US-ASCII
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  http_interactions:
3
3
  - request:
4
- method: post
4
+ method: put
5
5
  uri: http://example.com/meta
6
6
  body:
7
7
  encoding: US-ASCII
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  http_interactions:
3
3
  - request:
4
- method: post
4
+ method: put
5
5
  uri: http://example.com/meta
6
6
  body:
7
7
  encoding: US-ASCII
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  http_interactions:
3
3
  - request:
4
- method: post
4
+ method: put
5
5
  uri: http://example.com/meta
6
6
  body:
7
7
  encoding: US-ASCII
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  http_interactions:
3
3
  - request:
4
- method: post
4
+ method: put
5
5
  uri: http://example.com/meta
6
6
  body:
7
7
  encoding: US-ASCII
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  http_interactions:
3
3
  - request:
4
- method: post
4
+ method: put
5
5
  uri: http://example.com/meta
6
6
  body:
7
7
  encoding: US-ASCII
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  http_interactions:
3
3
  - request:
4
- method: post
4
+ method: put
5
5
  uri: http://example.com/meta
6
6
  body:
7
7
  encoding: US-ASCII
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  http_interactions:
3
3
  - request:
4
- method: post
4
+ method: put
5
5
  uri: http://example.com/meta
6
6
  body:
7
7
  encoding: US-ASCII
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  http_interactions:
3
3
  - request:
4
- method: post
4
+ method: put
5
5
  uri: http://example.com/meta
6
6
  body:
7
7
  encoding: US-ASCII
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: continuum-stager-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Ellithorpe