gaptool-client 0.6.1 → 0.6.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/gaptool-client.rb +4 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9840e7571899e8452f2578e42a75e31712f5bff8
4
- data.tar.gz: a2a763ce1fdd09fa2de47cf823fced2678439a5b
3
+ metadata.gz: f6de8bc33084ec12da1f6fad916b314040c275b8
4
+ data.tar.gz: d0fb9308219bd92b244369f5af51290639ecc8a9
5
5
  SHA512:
6
- metadata.gz: 47902849b7ab4e1acbd72f24a130810b8e25e286d51d150451aae8c2a7d645c48be421a900979d3dbd359b48eefd18247d7117ed022e526addeb5d25767da995
7
- data.tar.gz: 18fd55fbb61780ea848b51028052c6b271bfe8dcd377373affafb85ffc2481b4274320efbd7ac345973c43bd37e9c1b240fea2b92c291b4aeddb969b23c9d6cd
6
+ metadata.gz: d8542c48e43566b1c6b4f444e3892ecef315f3a1c230848563d1e1be7e919bd6e946955cae84c91bb11e403b01d5ee2028e52f09610e86241d7f5cb8e50b2376
7
+ data.tar.gz: 129975c34b7e5a48224f66fdf88551eb26615c7431582f0cdecd15f031d22b54586cc76673a5b31936b2e18e194e1aafbaeafa4841161623fa459baa3ebbc981
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.2
@@ -210,6 +210,7 @@ module Gaptool
210
210
  option ["-e", "--environment"], "ENVIRONMENT", "Which environment, e.g. production", :required => true
211
211
  option ["-i", "--instance"], "INSTANCE", "Instance ID, e.g. i-12345678", :required => false
212
212
  option ["-A", "--attribute"], "ATTRIBUTE", "Pass one or more parameters to the deploy recipe in recipe.attr=value format", :multivalued => true
213
+ option ["-b", "--chef-branch"], "BRANCH", "branch of the chef repository to use (defaults to master)", :default => 'master'
213
214
 
214
215
  def execute
215
216
  attrs = split_attrs(attribute_list)
@@ -229,10 +230,11 @@ module Gaptool
229
230
  'instance' => node['instance'],
230
231
  'zone' => node['zone'],
231
232
  'itype' => node['itype'],
232
- 'apps' => eval(node['apps'])
233
+ 'apps' => eval(node['apps']),
234
+ 'chefbranch' => chef_branch
233
235
  }.merge(attrs).to_json
234
236
  commands = [
235
- "cd ~admin/ops; git pull",
237
+ "cd ~admin/ops; git checkout -f #{chef_branch}; git fetch --all; git reset --hard origin/#{chef_branch}",
236
238
  "echo '#{json}' > ~admin/solo.json",
237
239
  "sudo chef-solo -c ~admin/ops/cookbooks/solo.rb -j ~admin/solo.json"
238
240
  ]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gaptool-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francesco Laurita
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-09-09 00:00:00.000000000 Z
13
+ date: 2014-09-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json