opzworks 0.8.0 → 0.9.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: 10d75cfb96a190ef39e3092f0a9475bef9700c28
4
- data.tar.gz: b49f369c4b7fce2fccc8cf1abbc74a2a497c05bb
3
+ metadata.gz: ceb825f2ff952211a19939007467e3e08b253159
4
+ data.tar.gz: fdb27f9eec43d7c0c58e54213088c3346368dc69
5
5
  SHA512:
6
- metadata.gz: 87b0cfd423e6c40bfa58eef2a03753e09b85702b61e4d7b0ae390c224f599812cf1d73612dd16bb3fda6c6681ac5910c3b7f67ce8181a04106c0f111bc324f60
7
- data.tar.gz: 369485d14cdfc5b10ec6378ec3fd98809cec1cc7588b52db2f34fb3730a2d2a2c6909cdca0f9c8350dbfbc65381c3afcee1b90e8c22f5b9a65fbf4cc748d0ad9
6
+ metadata.gz: ffea248fe7461455233b525a8b000324714ba69fd69999cc98bec9d451a81c20a0fc4bee98759b07d62ba601c0da2f2ccb004cff97591f76eea5690dcd86cc91
7
+ data.tar.gz: 88ff9887fd1584d3028c1f4a262120e6e31ab152f930bb4418bd0ce3486c682b219d52e92e9b2f31c3cafe467f64e4e7c57fa2acc82cb0a16f5ad0dd18a26867
data/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  changelog
2
2
  =========
3
3
 
4
+ 0.9.0
5
+ -----
6
+ * allow updating only specific cookbooks in the berkshelf: when passing the `-u` update flag, you can now also specify a space delimited list of cookbooks following a `-c` switch (`-u` alone will continue to run `berks update` for the entire berksfile):
7
+
8
+ e.g. `opzworks berks -u -c mapzen_transitland sensu`
9
+
4
10
  0.8.0
5
11
  -----
6
12
  * 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.
@@ -28,7 +28,8 @@ module OpzWorks
28
28
  EOS
29
29
  opt :ucc, 'Trigger update_custom_cookbooks on stack after uploading a new cookbook tarball.', default: true
30
30
  opt :update, 'Run berks update before packaging the Berkshelf.', default: false, short: 'u'
31
- opt :clone, 'Only clone the management repo, then exit.', short: 'c', default: false
31
+ opt :cookbooks, 'Run berks update only for the specified cookbooks', type: :strings, default: nil, short: 'c'
32
+ opt :clone, 'Only clone the management repo, then exit.', default: false
32
33
  end
33
34
  ARGV.empty? ? Trollop.die('no stacks specified') : false
34
35
 
@@ -83,11 +84,19 @@ module OpzWorks
83
84
  end
84
85
 
85
86
  if options[:update] == true
86
- puts "\nUpdating the berkshelf".foreground(:blue)
87
- run_local <<-BASH
88
- cd #{@target_path}
89
- berks update
90
- BASH
87
+ unless options[:cookbooks].nil?
88
+ puts "\nUpdating the berkshelf for cookbook(s) ".foreground(:blue) + "#{options[:cookbooks].join(', ')}".foreground(:green)
89
+ run_local <<-BASH
90
+ cd #{@target_path}
91
+ berks update #{options[:cookbooks].join(' ')}
92
+ BASH
93
+ else
94
+ puts "\nUpdating the berkshelf".foreground(:blue)
95
+ run_local <<-BASH
96
+ cd #{@target_path}
97
+ berks update
98
+ BASH
99
+ end
91
100
  else
92
101
  puts "\nNot running berks update".foreground(:blue)
93
102
  end
data/lib/opzworks/meta.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module OpzWorks
3
- VERSION = '0.8.0'.freeze
3
+ VERSION = '0.9.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.8.0
4
+ version: 0.9.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-18 00:00:00.000000000 Z
12
+ date: 2016-02-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk