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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c37f0b2bca2c0f10e7a8c8ababcdabd25829678f
4
- data.tar.gz: 6e5c3fb87505e5d31929809c2c32076d31f77b56
3
+ metadata.gz: e6436b43f8897f63f46819d77b63a219d0f84ef6
4
+ data.tar.gz: ee17e277171262a879470be28236c9f67d19dd57
5
5
  SHA512:
6
- metadata.gz: 6d14a03ec486045a161629ed05268cf1f7607038f2dc4c8cdef6c28433626fa4a522f324c4acbe397fd9742d675a8e73e0929ec91e6a9c4a50acfbdc98a3bf73
7
- data.tar.gz: 8aa58bdaa341078efa6f5b77b9397ab4bfb74241ffc123dfa2efaa3caec19eefef88e607312c5870943e9eb660492e8fdaa3853d44c062b5d844012d3f824732
6
+ metadata.gz: 7c12435c0fbb1434dbc668e2603f3b97d9f61397fae69ce643f41855d38172ca5015c4966fabbeaa52d7d84ee531df9b4029377f1fdd878edc621a004d9b9228
7
+ data.tar.gz: 40d7c6d9f4afa19e5ce7189c110f182660028ddc0bed4e964f260a089fee2e2f30dd859f5742bd004a5bb4cc4be986141f91c7f6f3d097679715b83a063219b7
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  changelog
2
2
  =========
3
3
 
4
+ 0.7.2
5
+ -----
6
+ * improved formatting and messaging for json cmd output
7
+
4
8
  0.7.1
5
9
  -----
6
10
  * more output formatting cleanup
@@ -68,27 +68,27 @@ module OpzWorks
68
68
  hash[:custom_json] = json
69
69
 
70
70
  if diff_str.empty?
71
- puts 'There are no differences between the existing stack json and the json you\'re asking to push.'.foreground(:yellow)
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 'Committing changes and pushing'.foreground(:blue)
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 'Done!'.color(:green)
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 'Committing changes and pushing'.foreground(:blue)
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 'Done!'.color(:green)
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
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module OpzWorks
3
- VERSION = '0.7.1'.freeze
3
+ VERSION = '0.7.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.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Heffernan