gaptool-api 0.6.4 → 0.6.5
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 +4 -4
- data/VERSION +1 -1
- data/lib/gaptool-api.rb +16 -10
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7fb544d15271dc0f8e58011527d834fa9be5ef76
|
|
4
|
+
data.tar.gz: 5e17f75f5238fce3a78de2f6041457a032fc2d0b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 38a4d0dd8886b1058b85d845ac61665cd73ae54434fab4b5e636d91630054103061bfb1d58c239e975b2722713c4df58db00cd5c889bedaea87f04f1ae3aedb3
|
|
7
|
+
data.tar.gz: 6f06f42a2e1f36ff28814777b927ca471fd41348d716b5f0b831af631110ef66c6e8815bd2f45b15bbc5b603799e8a96dc6206ac81dee10b77e5f935a8e7ad77
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.6.
|
|
1
|
+
0.6.5
|
data/lib/gaptool-api.rb
CHANGED
|
@@ -27,8 +27,8 @@ module GTAPI
|
|
|
27
27
|
JSON::parse self.class.get("/instance/#{id}", options)
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
def getenvroles(role, environment)
|
|
31
|
-
options = {:headers => @auth}
|
|
30
|
+
def getenvroles(role, environment, params={})
|
|
31
|
+
options = {:headers => @auth, :query => params}
|
|
32
32
|
JSON::parse self.class.get("/hosts/#{role}/#{environment}", options)
|
|
33
33
|
end
|
|
34
34
|
|
|
@@ -64,8 +64,14 @@ module GTAPI
|
|
|
64
64
|
JSON::parse self.class.post("/terminate", options)
|
|
65
65
|
end
|
|
66
66
|
|
|
67
|
-
def
|
|
68
|
-
|
|
67
|
+
def setparameters(instance, params)
|
|
68
|
+
@body = params.to_json
|
|
69
|
+
options = {:body => @body, :headers => @auth}
|
|
70
|
+
JSON::parse self.class.patch("/instance/#{instance}", options)
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
def getappnodes(app, environment, params={})
|
|
74
|
+
options = {:headers => @auth, :query => params}
|
|
69
75
|
role = JSON::parse(self.class.get("/apps", options))["app:#{app}"]['role']
|
|
70
76
|
JSON::parse self.class.get("/hosts/#{role}/#{environment}", options)
|
|
71
77
|
end
|
|
@@ -75,18 +81,18 @@ module GTAPI
|
|
|
75
81
|
JSON::parse self.class.get("/ssh/#{role}/#{environment}/#{id}", options)
|
|
76
82
|
end
|
|
77
83
|
|
|
78
|
-
def getrolenodes(role)
|
|
79
|
-
options = {
|
|
84
|
+
def getrolenodes(role, params={})
|
|
85
|
+
options = {:headers => @auth, :query => params}
|
|
80
86
|
JSON::parse self.class.get("/hosts/#{role}", options)
|
|
81
87
|
end
|
|
82
88
|
|
|
83
|
-
def getenvnodes(environment)
|
|
84
|
-
options = {
|
|
89
|
+
def getenvnodes(environment, params={})
|
|
90
|
+
options = {:headers => @auth, :query => params}
|
|
85
91
|
JSON::parse self.class.get("/hosts/ALL/#{environment}", options)
|
|
86
92
|
end
|
|
87
93
|
|
|
88
|
-
def getallnodes()
|
|
89
|
-
options = {
|
|
94
|
+
def getallnodes(params)
|
|
95
|
+
options = {:headers => @auth, :query => params}
|
|
90
96
|
JSON::parse self.class.get("/hosts", options)
|
|
91
97
|
end
|
|
92
98
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gaptool-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Bailey
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2015-01-26 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: httparty
|
|
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
64
64
|
version: '0'
|
|
65
65
|
requirements: []
|
|
66
66
|
rubyforge_project:
|
|
67
|
-
rubygems_version: 2.
|
|
67
|
+
rubygems_version: 2.4.3
|
|
68
68
|
signing_key:
|
|
69
69
|
specification_version: 4
|
|
70
70
|
summary: gaptool-server ruby API
|