scalr_api_v2 0.2.1 → 0.2.2
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/CHANGELOG +4 -0
- data/lib/scalr_api_v2/farms.rb +12 -0
- data/lib/scalr_api_v2/version.rb +1 -1
- 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: 54710c6c248a7862e3e04d1f2f3dbeb954c8f1c5
|
|
4
|
+
data.tar.gz: 8d6f956b22cb5a204e70c9812440c2c3a37e64f1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f6eea8324fa710531be5c172bf5aee473fe082cda5834228a9e8836f5ca21217df71556146e7accb367378146a5b72d72805b5c66247892aa7826b5ea1dfd9a1
|
|
7
|
+
data.tar.gz: 8977e7c6e4b69456f00707f861324f59073b6d6d48d02df516bdff7199d23c98488e28563353eeee5773540f7554c4bd5cd9f10b003d89ea73ec170b45ce8e96
|
data/CHANGELOG
CHANGED
data/lib/scalr_api_v2/farms.rb
CHANGED
|
@@ -15,6 +15,18 @@ module ScalrApiV2
|
|
|
15
15
|
return list
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
# List farm details
|
|
19
|
+
def get_farm(farm_id)
|
|
20
|
+
list = @scalr.list(format('/api/v1beta0/%s/farms/%s', @config['mode_path'], farm_id))
|
|
21
|
+
return list
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# List farm details
|
|
25
|
+
def list_farm_servers(farm_id)
|
|
26
|
+
list = @scalr.list(format('/api/v1beta0/%s/farms/%s/servers/', @config['mode_path'], farm_id))
|
|
27
|
+
return list
|
|
28
|
+
end
|
|
29
|
+
|
|
18
30
|
# TODO: add remainig api calls
|
|
19
31
|
end
|
|
20
32
|
end
|
data/lib/scalr_api_v2/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: scalr_api_v2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- david.meekin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-06-
|
|
11
|
+
date: 2017-06-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|