opzworks 0.7.3 → 0.8.0

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: fa7db6db4ceb45ee923f74de88de26451e8283cf
4
- data.tar.gz: bb2b2a5e79385ae3fba3651ff522e8a9ab3d3e57
3
+ metadata.gz: 10d75cfb96a190ef39e3092f0a9475bef9700c28
4
+ data.tar.gz: b49f369c4b7fce2fccc8cf1abbc74a2a497c05bb
5
5
  SHA512:
6
- metadata.gz: 56ae0cce6ddd680c49e2715d09f0de4dfe219f11297cf39648a5b65154d31207ac54511050a44c7c85b4fb061192458d0e2246979261150680a8e5ba8eb555b1
7
- data.tar.gz: 9cb6474d15e26cfbd16d594acd7fcef9e1750c3e360594f26b32c9daba402e2c6f16fc82efb1b2202c250b09fe1b03ef1643132627afaad0d7e50eb7ac16f30a
6
+ metadata.gz: 87b0cfd423e6c40bfa58eef2a03753e09b85702b61e4d7b0ae390c224f599812cf1d73612dd16bb3fda6c6681ac5910c3b7f67ce8181a04106c0f111bc324f60
7
+ data.tar.gz: 369485d14cdfc5b10ec6378ec3fd98809cec1cc7588b52db2f34fb3730a2d2a2c6909cdca0f9c8350dbfbc65381c3afcee1b90e8c22f5b9a65fbf4cc748d0ad9
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  changelog
2
2
  =========
3
3
 
4
+ 0.8.0
5
+ -----
6
+ * change in behavior: `berks update` is now no longer the default, and will be skipped unless the --update flag is passed explicitly. This is to prevent unwanted updating of unpinned cookbooks. However, you must now be sure to pass --update when the situation requires it.
7
+ * to all the short option of -u for `berks update`, the `update_custom_cookbooks` flag is now -ucc
8
+
4
9
  0.7.3
5
10
  -----
6
11
  * bundle update
@@ -26,7 +26,8 @@ module OpzWorks
26
26
 
27
27
  Options:
28
28
  EOS
29
- opt :update, 'Trigger update_custom_cookbooks on stack after uploading a new cookbook tarball.', default: true
29
+ opt :ucc, 'Trigger update_custom_cookbooks on stack after uploading a new cookbook tarball.', default: true
30
+ opt :update, 'Run berks update before packaging the Berkshelf.', default: false, short: 'u'
30
31
  opt :clone, 'Only clone the management repo, then exit.', short: 'c', default: false
31
32
  end
32
33
  ARGV.empty? ? Trollop.die('no stacks specified') : false
@@ -81,11 +82,15 @@ module OpzWorks
81
82
  BASH
82
83
  end
83
84
 
84
- puts "\nUpdating the berkshelf".foreground(:blue)
85
- run_local <<-BASH
86
- cd #{@target_path}
87
- berks update
88
- BASH
85
+ if options[:update] == true
86
+ puts "\nUpdating the berkshelf".foreground(:blue)
87
+ run_local <<-BASH
88
+ cd #{@target_path}
89
+ berks update
90
+ BASH
91
+ else
92
+ puts "\nNot running berks update".foreground(:blue)
93
+ end
89
94
 
90
95
  puts "\nPackaging the berkshelf".foreground(:blue)
91
96
  run_local <<-BASH
@@ -122,7 +127,7 @@ module OpzWorks
122
127
 
123
128
  # update remote cookbooks
124
129
  #
125
- if options[:update] == true
130
+ if options[:ucc] == true
126
131
  puts "\nTriggering update_custom_cookbooks for remote stack (#{@stack_id})".foreground(:blue)
127
132
 
128
133
  hash = {}
@@ -139,7 +144,7 @@ module OpzWorks
139
144
  puts 'Done!'.foreground(:green)
140
145
  end
141
146
  else
142
- puts 'Update custom cookbooks skipped via --no-update switch.'.foreground(:blue)
147
+ puts 'Update custom cookbooks skipped via --no-ucc switch.'.foreground(:blue)
143
148
  end
144
149
  end
145
150
  end
data/lib/opzworks/meta.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module OpzWorks
3
- VERSION = '0.7.3'.freeze
3
+ VERSION = '0.8.0'.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.3
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Heffernan
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-02-10 00:00:00.000000000 Z
12
+ date: 2016-02-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk