opzworks 0.4.1 → 0.4.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: 623aa23d6aa18d9e9ac689a0af79c235658c1882
4
- data.tar.gz: f65760c9802bcf2486533b99d5df36d4fd4aec69
3
+ metadata.gz: 6026ec5ba1fa9f91a019f390562652e4d2e61973
4
+ data.tar.gz: b9a91f25201068131b39fd673c083ecffdbd0bfa
5
5
  SHA512:
6
- metadata.gz: d5bcee47505fd354a87a20c6f98c8bd0f13c5536901068640e4589219f0afb319e2b855362e5a92a7a9fae201f9c17d15a0c4a1fd10d38841179dd28c11897ee
7
- data.tar.gz: 4c67e78452dc95221fa49f4e7f67cca4ba6de4adcdd709b01436fbaf513dfa1979d4b8eb63305031ebd62b06d1d7fed16a14560e7881892105112d3a2eebd220
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
@@ -1,5 +1,5 @@
1
1
  module OpzWorks
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  AUTHORS = ['Grant Heffernan', 'Mapzen']
4
4
  EMAIL = ['grant@mapzen.com']
5
5
  DESCRIPTION = 'OpzWorks Utilities'
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.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Heffernan