opzworks 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/opzworks/commands/berks.rb +2 -0
- data/lib/opzworks/commands/json.rb +3 -1
- 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: 0227740638ba8cba45e3cf1894d1835aee89a5a6
|
4
|
+
data.tar.gz: 4f24bcf3cf796509078019a9b93e801a6df2dd2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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',
|
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