opzworks 0.7.0 → 0.7.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6bdef3feb5b4be06d5c793abfd6dc87c50b3a3db
4
- data.tar.gz: 8380aa94b7ef8f1f754c6f50f6d07444afef10f4
3
+ metadata.gz: c37f0b2bca2c0f10e7a8c8ababcdabd25829678f
4
+ data.tar.gz: 6e5c3fb87505e5d31929809c2c32076d31f77b56
5
5
  SHA512:
6
- metadata.gz: fd04bb03e9460c266a2107a167d0827e4eced5375393ef7cfb72c420779434089f1f1af4f39349535d9300716ccd6b4a2db900929fcd50c404205cbe0173b57d
7
- data.tar.gz: 5f0bcea7dda3cc0240c3a523c3ab39a1bc139cd97071e40d6b1b834532999f39afd5de967060c06260a2807304a77be8d96e3f00bafe746a114fd803e9f6f999
6
+ metadata.gz: 6d14a03ec486045a161629ed05268cf1f7607038f2dc4c8cdef6c28433626fa4a522f324c4acbe397fd9742d675a8e73e0929ec91e6a9c4a50acfbdc98a3bf73
7
+ data.tar.gz: 8aa58bdaa341078efa6f5b77b9397ab4bfb74241ffc123dfa2efaa3caec19eefef88e607312c5870943e9eb660492e8fdaa3853d44c062b5d844012d3f824732
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  changelog
2
2
  =========
3
3
 
4
+ 0.7.1
5
+ -----
6
+ * more output formatting cleanup
7
+ * remove superflous cleanup commands
8
+
4
9
  0.7.0
5
10
  -----
6
11
  * use `berks package` rather than vendor and archive
@@ -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}: #{e}".foreground(:red)
108
- puts 'Cleaning up before exiting'.foreground(:blue)
109
- FileUtils.rm(cookbook_upload)
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 'Cleaning up'.foreground(:blue)
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 "Triggering update_custom_cookbooks for remote stack (#{@stack_id})".foreground(:blue)
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
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module OpzWorks
3
- VERSION = '0.7.0'.freeze
3
+ VERSION = '0.7.1'.freeze
4
4
  AUTHORS = ['Grant Heffernan', 'Mapzen'].freeze
5
5
  EMAIL = ['grant@mapzen.com'].freeze
6
6
  DESCRIPTION = 'OpzWorks Utilities'.freeze
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.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Heffernan