opzworks 0.6.1 → 0.6.2

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: 6c18a9837e56cadee69ce3d380874f07ab284103
4
- data.tar.gz: 8905668351c58b958be1eda5f3c0a054df805403
3
+ metadata.gz: 0227740638ba8cba45e3cf1894d1835aee89a5a6
4
+ data.tar.gz: 4f24bcf3cf796509078019a9b93e801a6df2dd2a
5
5
  SHA512:
6
- metadata.gz: e618a7577ff67deca250c1147123dfec1341510cba1d44f5098d5c6794df1f8d56794fa293aa971fc75d92011f4021be5d4bbb706d816c5c5ebec18eb0a059a8
7
- data.tar.gz: 1d2f6ddbb8b0fbdec84d9f010b072093523449d061d42e7e62893382ea9ac1d34a2a4e042639f26c846e89679ec0ccc54b628158bc193922ae8bb0ddec37ed80
6
+ metadata.gz: 9f5fca32c81ff05746e9f4eb1baaae13ac4ac38822600df5ca1ee48b1904f8f88cdb21dce3b2b044f3ff2a37394823974e828b71894a9c676e3d82ee764f1118
7
+ data.tar.gz: 7c0e0b70030c75d66e69a0d8d82b31382ad7752c3e775130570a7552a2e89faea40b7c4249768633c12331264499e1e89d0c84bd4315a0c6daacc270a9eacb44
@@ -27,6 +27,7 @@ module OpzWorks
27
27
  Options:
28
28
  EOS
29
29
  opt :update, 'Trigger update_custom_cookbooks on stack after uploading a new cookbook tarball.', default: true
30
+ opt :clone, 'Only clone the management repo, then exit.', short: 'c', default: false
30
31
  end
31
32
  ARGV.empty? ? Trollop.die('no stacks specified') : false
32
33
 
@@ -59,6 +60,7 @@ module OpzWorks
59
60
  puts "\n"
60
61
  var = manage_berks_repos
61
62
  next if var == false
63
+ next if options[:clone] == true
62
64
 
63
65
  berks_cook_path = config.berks_base_path || '/tmp'
64
66
  cook_path = "#{berks_cook_path}/#{@project}-#{@branch}"
@@ -28,7 +28,8 @@ module OpzWorks
28
28
  Options:
29
29
  EOS
30
30
  opt :quiet, 'Update the stack json without confirmation', short: 'q', default: false
31
- opt :context, 'Change the number lines of diff context to show', short: 'c', default: 5
31
+ opt :context, 'Change the number lines of diff context to show', default: 5
32
+ opt :clone, 'Just clone the management repo then exit', short: 'c', default: false
32
33
  end
33
34
  ARGV.empty? ? Trollop.die('no stacks specified') : false
34
35
 
@@ -56,6 +57,7 @@ module OpzWorks
56
57
  puts "\n"
57
58
  var = manage_berks_repos
58
59
  next if var == false
60
+ next if options[:clone] == true
59
61
 
60
62
  json = File.read("#{@target_path}/stack.json")
61
63
  diff = Diffy::Diff.new(@stack_json + "\n", json, context: options[:context])
data/lib/opzworks/meta.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module OpzWorks
3
- VERSION = '0.6.1'.freeze
3
+ VERSION = '0.6.2'.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.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Heffernan