gaptool-api 0.6.3 → 0.6.4

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: 7d62c7e3a13fc39e0a5433024cb12ca43f09f134
4
- data.tar.gz: 0002389eb79b5f8b5fd87c5a2f235e3ad25eecfb
3
+ metadata.gz: 919169bea98028d0d47bcaaa7bccae6c9f4edbff
4
+ data.tar.gz: 74722be2b6cc36af14889cb28e88c6eb8df25745
5
5
  SHA512:
6
- metadata.gz: 6d4ea523072bf82920135fd9efb824075ea1230763c75ac2d5d2bb251f4a877edd9886872da7dd7b56583214a17813421e73e675acfd6efbd1d07e7340c0bd29
7
- data.tar.gz: a023b0cf0ac6e4b8fe4e46ce9926779925b7c5ec5bd141dd1447149d372b8dbd7d238b6888bb68059c44fceff9ff74b78a506a13cc8d76348628308a3bd96329
6
+ metadata.gz: 28211951300661371b0e7a483c8b338ed4af3b2a3e76960df9e6aed330027c402a7dc5e54e6508f922f3696e4a7ffad0040bb9a71ab30df884265c95ead49389
7
+ data.tar.gz: 5f902d35a3c2c53afed8d22c4270237ca15d692f1df2e0decaacf74c252a343dbc0730a5cf2a20c4e30ed79d0da0f13797209fc5ac1f7f290077169f8cbabe89
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.3
1
+ 0.6.4
data/lib/gaptool-api.rb CHANGED
@@ -33,7 +33,8 @@ module GTAPI
33
33
  end
34
34
 
35
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
+ ami=nil, chef_repo=nil, chef_branch=nil, chef_runlist=nil,
37
+ no_terminate=nil)
37
38
  @body = {
38
39
  'zone' => zone || @default_aws_az,
39
40
  'itype' => itype,
@@ -49,6 +50,9 @@ module GTAPI
49
50
  unless chef_runlist.nil? || chef_runlist.empty?
50
51
  @body['chef_runlist'] = [*chef_runlist]
51
52
  end
53
+ if no_terminate
54
+ @body['terminate'] = false
55
+ end
52
56
  @body = @body.to_json
53
57
  options = { :body => @body, :headers => @auth}
54
58
  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.3
4
+ version: 0.6.4
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-23 00:00:00.000000000 Z
12
+ date: 2014-09-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty