opzworks 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/opzworks/commands/berks.rb +9 -7
- 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: c37f0b2bca2c0f10e7a8c8ababcdabd25829678f
|
4
|
+
data.tar.gz: 6e5c3fb87505e5d31929809c2c32076d31f77b56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d14a03ec486045a161629ed05268cf1f7607038f2dc4c8cdef6c28433626fa4a522f324c4acbe397fd9742d675a8e73e0929ec91e6a9c4a50acfbdc98a3bf73
|
7
|
+
data.tar.gz: 8aa58bdaa341078efa6f5b77b9397ab4bfb74241ffc123dfa2efaa3caec19eefef88e607312c5870943e9eb660492e8fdaa3853d44c062b5d844012d3f824732
|
data/CHANGELOG.md
CHANGED
@@ -104,9 +104,10 @@ module OpzWorks
|
|
104
104
|
obj = s3.bucket(s3_bucket).object("#{@s3_path}/#{cookbook_tarball}")
|
105
105
|
obj.upload_file(cookbook_upload)
|
106
106
|
rescue StandardError => e
|
107
|
-
puts "Caught exception while uploading to S3 bucket #{s3_bucket}:
|
108
|
-
puts
|
109
|
-
|
107
|
+
puts "Caught exception while uploading to S3 bucket #{s3_bucket}:".foreground(:red)
|
108
|
+
puts "\t#{e}"
|
109
|
+
puts "\nCleaning up before exiting".foreground(:blue)
|
110
|
+
|
110
111
|
FileUtils.rm_rf(cook_path)
|
111
112
|
abort
|
112
113
|
else
|
@@ -115,15 +116,14 @@ module OpzWorks
|
|
115
116
|
|
116
117
|
# cleanup
|
117
118
|
#
|
118
|
-
puts
|
119
|
-
FileUtils.rm(cookbook_upload)
|
119
|
+
puts "\nCleaning up".foreground(:blue)
|
120
120
|
FileUtils.rm_rf(cook_path)
|
121
121
|
puts 'Done!'.foreground(:green)
|
122
122
|
|
123
123
|
# update remote cookbooks
|
124
124
|
#
|
125
125
|
if options[:update] == true
|
126
|
-
puts "
|
126
|
+
puts "\nTriggering update_custom_cookbooks for remote stack (#{@stack_id})".foreground(:blue)
|
127
127
|
|
128
128
|
hash = {}
|
129
129
|
hash[:comment] = 'shake and bake'
|
@@ -134,7 +134,9 @@ module OpzWorks
|
|
134
134
|
opsworks.create_deployment(hash)
|
135
135
|
rescue Aws::OpsWorks::Errors::ServiceError => e
|
136
136
|
puts 'Caught error while attempting to trigger deployment: '.foreground(:red)
|
137
|
-
puts e
|
137
|
+
puts "\t#{e}"
|
138
|
+
else
|
139
|
+
puts 'Done!'.foreground(:green)
|
138
140
|
end
|
139
141
|
else
|
140
142
|
puts 'Update custom cookbooks skipped via --no-update switch.'.foreground(:blue)
|
data/lib/opzworks/meta.rb
CHANGED