opzworks 0.12.0 → 0.12.1

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: f740b238f93e2c1ddfec5ef71c0686656569b4d6
4
- data.tar.gz: dc99860d8e4cd003523845d78a7c3552c6c6fd84
3
+ metadata.gz: bbebdf7fc54884e9a8076a28708bd3df97fa68e5
4
+ data.tar.gz: 55dbc9f1cd1a547229ad07489d37798cbca74ea9
5
5
  SHA512:
6
- metadata.gz: 1a2f20a5c0938a6c0289cdd919fba88e040f4bcc9a9c81faa79911ca8e5b2f0029ce0a86bec0255f6c7f8813b2a83b1c77d4c14eb2ba4f6d3ddb93bc7cdbe0dc
7
- data.tar.gz: 8f6bd7aef86c74bb4d03367dee0ccf61db4b1cbc230ee310cf9d9faffd1843e2932488e271487be54dff8fe4443589f4d7f2962ff99b4d8cc797cd7511c41071
6
+ metadata.gz: b957b351bb924c2a8a6b15097d961b36287585dd9c9e1c2e1b33e2e35d6dca169aa45eb3c5118ad08fd6c84f18620b9f2fb5c0c9f57357ab65e5a88a6665a2de
7
+ data.tar.gz: c1c830540e7a50b9ce1d09e766ff6a2413d99592541537da1fcb58e758bd379a7df89ed13f7938b4a3321f11685d4bb261fd834278cd3824aabef1529c243f43
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  changelog
2
2
  =========
3
3
 
4
+ 0.12.1
5
+ ------
6
+ * lint
7
+
4
8
  0.12.0
5
9
  ------
6
10
  * update aws-sdk dependency to 2.2.37
@@ -65,7 +65,7 @@ module OpzWorks
65
65
  next if var == false
66
66
  next if options[:clone] == true
67
67
 
68
- time = Time.new.utc.strftime("%FT%TZ")
68
+ time = Time.new.utc.strftime('%FT%TZ')
69
69
  berks_cook_path = config.berks_base_path || '/tmp'
70
70
  cook_path = "#{berks_cook_path}/#{@project}-#{@branch}"
71
71
  cookbook_tarball = config.berks_tarball_name || 'cookbooks.tgz'
@@ -114,15 +114,16 @@ module OpzWorks
114
114
 
115
115
  # backup previous if it exists
116
116
  #
117
+ puts "\nBackup".foreground(:blue)
117
118
  begin
118
119
  s3_client.head_object(
119
120
  bucket: s3_bucket,
120
121
  key: "#{@s3_path}/#{cookbook_tarball}"
121
122
  )
122
- rescue Aws::S3::Errors::ServiceError => e
123
+ rescue Aws::S3::Errors::ServiceError =>
123
124
  puts "No existing #{cookbook_tarball} in #{s3_bucket} to backup, continuing...".foreground(:yellow)
124
125
  else
125
- puts "Backing up #{cookbook_tarball} to #{@s3_path}/#{cookbook_tarball}-#{time}".foreground(:green)
126
+ puts "Backing up existing #{cookbook_tarball} to #{@s3_path}/#{cookbook_tarball}-#{time}".foreground(:green)
126
127
  begin
127
128
  s3_client.copy_object(
128
129
  key: "#{@s3_path}/#{cookbook_tarball}-#{time}",
@@ -137,9 +138,8 @@ module OpzWorks
137
138
  end
138
139
 
139
140
  # upload
141
+ puts "\nUploading to S3".foreground(:blue)
140
142
  begin
141
- puts "\nUploading to S3".foreground(:blue)
142
-
143
143
  obj = s3.bucket(s3_bucket).object("#{@s3_path}/#{cookbook_tarball}")
144
144
  obj.upload_file(cookbook_upload)
145
145
  rescue Aws::S3::Errors::ServiceError => e
data/lib/opzworks/meta.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module OpzWorks
3
- VERSION = '0.12.0'.freeze
3
+ VERSION = '0.12.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.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Heffernan