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 +4 -4
- data/lib/opzworks/commands/berks.rb +16 -12
- data/lib/opzworks/meta.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34a65e139cfa895a4fd02ca49d158159515acb46
|
4
|
+
data.tar.gz: 04bf486b04f63f10392fb8ba154ce22a915543cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
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