opzworks 0.4.1 → 0.4.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/CHANGELOG.md +5 -0
- data/lib/opzworks/commands/json.rb +6 -0
- 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: 6026ec5ba1fa9f91a019f390562652e4d2e61973
|
4
|
+
data.tar.gz: b9a91f25201068131b39fd673c083ecffdbd0bfa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73e6f8b5a47ac7f5ddcef0f5027af1b9d75f527c9b9ff4315ea725161eb811cb7e61b917e7973d00500eddae59585412bbde65533790e52c5e313e4649bb9935
|
7
|
+
data.tar.gz: 33b21e36a45d7fb154e1ac125d2d3d3d5682b72a7ffa8bebff5ec7f6dc4013eaa081da9a274cb64eccde16e32a13e1677ed0d3431a6b7a82a2d8e3c2ae286c21
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
changelog
|
2
2
|
=========
|
3
3
|
|
4
|
+
0.4.2
|
5
|
+
-----
|
6
|
+
* standardize behavior of json and berks commands: changes in a dirty working opsworks repo will
|
7
|
+
be committed and pushed before the remote stack is updated
|
8
|
+
|
4
9
|
0.4.0
|
5
10
|
-----
|
6
11
|
* add framework for opsworks cmd structure
|
@@ -58,6 +58,9 @@ module OpzWorks
|
|
58
58
|
puts 'Quiet mode detected. Pushing the following updated json:'.foreground(:yellow)
|
59
59
|
puts diff_str
|
60
60
|
|
61
|
+
puts 'Committing changes and pushing'.foreground(:blue)
|
62
|
+
system "cd #{@target_path} && git commit -am 'stack update'; git push origin #{@branch}"
|
63
|
+
|
61
64
|
client.update_stack(hash)
|
62
65
|
puts 'Done!'.color(:green)
|
63
66
|
else
|
@@ -66,6 +69,9 @@ module OpzWorks
|
|
66
69
|
STDOUT.print "\nType ".foreground(:yellow) + 'yes '.foreground(:blue) + 'to continue, any other key will abort: '.foreground(:yellow)
|
67
70
|
input = STDIN.gets.chomp
|
68
71
|
if input =~ /^y/i
|
72
|
+
puts 'Committing changes and pushing'.foreground(:blue)
|
73
|
+
system "cd #{@target_path} && git commit -am 'stack update'; git push origin #{@branch}"
|
74
|
+
|
69
75
|
client.update_stack(hash)
|
70
76
|
puts 'Done!'.color(:green)
|
71
77
|
else
|
data/lib/opzworks/meta.rb
CHANGED