opzworks 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e68d484cd65b6feec230588d40b75e2169229b7c
4
- data.tar.gz: d6b2d7169049e85eec1d4451afd90c338914008c
3
+ metadata.gz: 34a65e139cfa895a4fd02ca49d158159515acb46
4
+ data.tar.gz: 04bf486b04f63f10392fb8ba154ce22a915543cf
5
5
  SHA512:
6
- metadata.gz: df75dbac48b6a5166d7f0cf56cbf1fc41ec1343980d89f01ad8fd8f61a0ce7ec6d811bba82d5f7892e6a49b611af4c2124bd705e13ed57aa7a39239ecc249f31
7
- data.tar.gz: e6a27406af4b0ccb0d6d0e47b1430f0f78ccc794412565cfb5eae5a7b6f84970e26036d87352dd00558650ad07da48a8c50b71fe8cc2f3c1b70cafa0ada49387
6
+ metadata.gz: fdda26f38eb3aec858f58d651cf1710de7461f0782d06047aa74f274eef888c8724d68a2ee48492c3654d99fff4fdf73f3444a31593a3bf02bfc6b8eb2a8f50f
7
+ data.tar.gz: 5b8a1e05b38aea6726eb9cd00f4585b5b1e2104fd91a65b4da297f386871092e76414c18232602c1ae202a1b5453029acdf0bbe9ceadd2595e7b0f099eb58c42
@@ -143,18 +143,22 @@ module OpzWorks
143
143
  # update remote cookbooks
144
144
  #
145
145
  if options[:update] == true
146
- puts "Triggering update_custom_cookbooks for remote stack (#{@stack_id})".foreground(:blue)
147
-
148
- hash = {}
149
- hash[:comment] = 'shake and bake'
150
- hash[:stack_id] = @stack_id
151
- hash[:command] = { name: 'update_custom_cookbooks' }
152
-
153
- begin
154
- opsworks.create_deployment(hash)
155
- rescue Aws::OpsWorks::Errors::ServiceError => e
156
- puts 'Caught error while attempting to trigger deployment: '.foreground(:red)
157
- puts e
146
+ if @chef_version.to_i > 11
147
+ puts "Skipping update_custom_cookbooks, this is stack is running Chef > 11 (#{@chef_version})".foreground(:blue)
148
+ else
149
+ puts "Triggering update_custom_cookbooks for remote stack (#{@stack_id})".foreground(:blue)
150
+
151
+ hash = {}
152
+ hash[:comment] = 'shake and bake'
153
+ hash[:stack_id] = @stack_id
154
+ hash[:command] = { name: 'update_custom_cookbooks' }
155
+
156
+ begin
157
+ opsworks.create_deployment(hash)
158
+ rescue Aws::OpsWorks::Errors::ServiceError => e
159
+ puts 'Caught error while attempting to trigger deployment: '.foreground(:red)
160
+ puts e
161
+ end
158
162
  end
159
163
  else
160
164
  puts 'Update custom cookbooks skipped via --no-update switch.'.foreground(:blue)
data/lib/opzworks/meta.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module OpzWorks
2
- VERSION = '0.4.4'
2
+ VERSION = '0.4.5'
3
3
  AUTHORS = ['Grant Heffernan', 'Mapzen']
4
4
  EMAIL = ['grant@mapzen.com']
5
5
  DESCRIPTION = 'OpzWorks Utilities'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opzworks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Heffernan