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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/opzworks/commands/berks.rb +5 -5
- 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: bbebdf7fc54884e9a8076a28708bd3df97fa68e5
|
4
|
+
data.tar.gz: 55dbc9f1cd1a547229ad07489d37798cbca74ea9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b957b351bb924c2a8a6b15097d961b36287585dd9c9e1c2e1b33e2e35d6dca169aa45eb3c5118ad08fd6c84f18620b9f2fb5c0c9f57357ab65e5a88a6665a2de
|
7
|
+
data.tar.gz: c1c830540e7a50b9ce1d09e766ff6a2413d99592541537da1fcb58e758bd379a7df89ed13f7938b4a3321f11685d4bb261fd834278cd3824aabef1529c243f43
|
data/CHANGELOG.md
CHANGED
@@ -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(
|
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 =>
|
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