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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d9424c3a0e3e7a46c0bf1c92bc0f46d541a165f
4
- data.tar.gz: 8d84a43070160837901b3a5c5905ba24bfefab17
3
+ metadata.gz: 54710c6c248a7862e3e04d1f2f3dbeb954c8f1c5
4
+ data.tar.gz: 8d6f956b22cb5a204e70c9812440c2c3a37e64f1
5
5
  SHA512:
6
- metadata.gz: 3703ed23cb5881541916b49606059ea19487e303c3899394e86efb27a59cb39c4ab30d528e9e18ac090a2d8633963945460836a6d379c446882ecf4f011601a0
7
- data.tar.gz: bf1050c276c2df39863930d467d9a7909176b6cf87531a09ca22ae8c0f04c85c1a7e84a4e8b5408a825d865df334170165becb0fd64a69b18b6e805d0417daf8
6
+ metadata.gz: f6eea8324fa710531be5c172bf5aee473fe082cda5834228a9e8836f5ca21217df71556146e7accb367378146a5b72d72805b5c66247892aa7826b5ea1dfd9a1
7
+ data.tar.gz: 8977e7c6e4b69456f00707f861324f59073b6d6d48d02df516bdff7199d23c98488e28563353eeee5773540f7554c4bd5cd9f10b003d89ea73ec170b45ce8e96
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.2.2
2
+
3
+ * Added: Scripts::get_farm, Scripts::list_farm_servers and tests
4
+
1
5
  == 0.2.1
2
6
 
3
7
  * Bugfix: duplicate json encoding was taking place in Scripts class
@@ -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
@@ -1,4 +1,4 @@
1
1
  # ScalrApiV2::VERSION
2
2
  module ScalrApiV2
3
- VERSION = '0.2.1'.freeze
3
+ VERSION = '0.2.2'.freeze
4
4
  end
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.1
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-09 00:00:00.000000000 Z
11
+ date: 2017-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler