gaptool-api 0.6.1 → 0.6.3

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/gaptool-api.rb +5 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc30dde7d59dd2e6126225ab8c02143207a9f2f9
4
- data.tar.gz: 3eaaa37b8286223d58d881d1de983f47b27144f5
3
+ metadata.gz: 7d62c7e3a13fc39e0a5433024cb12ca43f09f134
4
+ data.tar.gz: 0002389eb79b5f8b5fd87c5a2f235e3ad25eecfb
5
5
  SHA512:
6
- metadata.gz: c0e6be66e4279c4e160deb1eec8156e23f7c9ed55976a2f184122683cb637a434a38441123ae078648f54ecf0b3f25a2fee3ffae820a5e768b2c5a1972112c44
7
- data.tar.gz: b33d30a49197508cf8fc16a0b6909ea6658518d977ca445c6ba8a57dd422399e2bacd79f7ff0ae01af6c2f74b3c395e091c848a521aab4a9689cbb0708ccd99d
6
+ metadata.gz: 6d4ea523072bf82920135fd9efb824075ea1230763c75ac2d5d2bb251f4a877edd9886872da7dd7b56583214a17813421e73e675acfd6efbd1d07e7340c0bd29
7
+ data.tar.gz: a023b0cf0ac6e4b8fe4e46ce9926779925b7c5ec5bd141dd1447149d372b8dbd7d238b6888bb68059c44fceff9ff74b78a506a13cc8d76348628308a3bd96329
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.3
@@ -32,7 +32,8 @@ module GTAPI
32
32
  JSON::parse self.class.get("/hosts/#{role}/#{environment}", options)
33
33
  end
34
34
 
35
- def addnode(zone, itype, role, environment, mirror=nil, security_group=nil, ami=nil, chef_repo=nil, chef_branch=nil)
35
+ def addnode(zone, itype, role, environment, mirror=nil, security_group=nil,
36
+ ami=nil, chef_repo=nil, chef_branch=nil, chef_runlist=nil)
36
37
  @body = {
37
38
  'zone' => zone || @default_aws_az,
38
39
  'itype' => itype,
@@ -45,6 +46,9 @@ module GTAPI
45
46
  unless security_group.nil?
46
47
  @body['security_group'] = security_group
47
48
  end
49
+ unless chef_runlist.nil? || chef_runlist.empty?
50
+ @body['chef_runlist'] = [*chef_runlist]
51
+ end
48
52
  @body = @body.to_json
49
53
  options = { :body => @body, :headers => @auth}
50
54
  JSON::parse self.class.post("/init", options)
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.1
4
+ version: 0.6.3
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: 2014-09-13 00:00:00.000000000 Z
12
+ date: 2014-09-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty