opzworks 0.7.1 → 0.7.2
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/json.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: e6436b43f8897f63f46819d77b63a219d0f84ef6
|
4
|
+
data.tar.gz: ee17e277171262a879470be28236c9f67d19dd57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c12435c0fbb1434dbc668e2603f3b97d9f61397fae69ce643f41855d38172ca5015c4966fabbeaa52d7d84ee531df9b4029377f1fdd878edc621a004d9b9228
|
7
|
+
data.tar.gz: 40d7c6d9f4afa19e5ce7189c110f182660028ddc0bed4e964f260a089fee2e2f30dd859f5742bd004a5bb4cc4be986141f91c7f6f3d097679715b83a063219b7
|
data/CHANGELOG.md
CHANGED
@@ -68,27 +68,27 @@ module OpzWorks
|
|
68
68
|
hash[:custom_json] = json
|
69
69
|
|
70
70
|
if diff_str.empty?
|
71
|
-
puts
|
71
|
+
puts "\nThere are no differences between the existing stack json and the json you\'re asking to push.".foreground(:yellow)
|
72
72
|
elsif options[:quiet]
|
73
73
|
puts 'Quiet mode detected. Pushing the following updated json:'.foreground(:yellow)
|
74
74
|
puts diff_str
|
75
75
|
|
76
|
-
puts
|
76
|
+
puts "\nCommitting changes and pushing".foreground(:blue)
|
77
77
|
system "cd #{@target_path} && git commit -am 'stack update'; git push origin #{@branch}"
|
78
78
|
|
79
79
|
client.update_stack(hash)
|
80
|
-
puts
|
80
|
+
puts "\nStack json updated!".color(:green)
|
81
81
|
else
|
82
82
|
puts "\nThe following is a partial diff of the existing stack json and the json you're asking to push:".foreground(:yellow)
|
83
83
|
puts diff_str
|
84
84
|
STDOUT.print "\nType ".foreground(:yellow) + 'yes '.foreground(:blue) + 'to continue, any other key will abort: '.foreground(:yellow)
|
85
85
|
input = STDIN.gets.chomp
|
86
86
|
if input =~ /^y/i
|
87
|
-
puts
|
87
|
+
puts "\nCommitting changes and pushing".foreground(:blue)
|
88
88
|
system "cd #{@target_path} && git commit -am 'stack update'; git push origin #{@branch}"
|
89
89
|
|
90
90
|
client.update_stack(hash)
|
91
|
-
puts
|
91
|
+
puts "\nStack json updated!".color(:green)
|
92
92
|
else
|
93
93
|
puts 'Update skipped.'.foreground(:red)
|
94
94
|
end
|
data/lib/opzworks/meta.rb
CHANGED