hu 1.5.13 → 1.5.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/hu.gemspec +3 -4
- data/lib/hu/common.rb +1 -1
- data/lib/hu/deploy.rb +16 -5
- data/lib/hu/version.rb +1 -1
- metadata +9 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 237e6012ee62269e647510e5a67eaeed8b7f9e4b
|
4
|
+
data.tar.gz: 0fb084584d042e61f43d2bbc4adc6aeff7ccbd2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e7059b23df9448e2e80f28d3e52c2fa3e48c5491216e817b8c4263e355feb2f360466774ee58c68e88659a6af50d08c57c68a2d1362e922784dd4300e67d4cd
|
7
|
+
data.tar.gz: 71402225fc65c5cb2538c476b987d41770101ec5d1212d36eaf3883da5c11e5a087fb125b7cbb0ae59bc811a35fef6c73f2d55e901f6871c3bd3e39786df3e44
|
data/hu.gemspec
CHANGED
@@ -25,12 +25,11 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.add_development_dependency 'bump'
|
26
26
|
|
27
27
|
spec.add_dependency 'optix', '~> 1.2.4'
|
28
|
-
spec.add_dependency 'blackbox', '~>
|
29
|
-
spec.add_dependency '
|
30
|
-
spec.add_dependency 'platform-api', '~> 0.8.0'
|
28
|
+
spec.add_dependency 'blackbox', '~> 4.0.2'
|
29
|
+
spec.add_dependency 'platform-api', '~> 2.1.0'
|
31
30
|
spec.add_dependency 'powerbar', '>= 1.0.16'
|
32
31
|
spec.add_dependency 'hashdiff', '~> 0.3.0'
|
33
|
-
spec.add_dependency 'version_sorter', '~> 2.
|
32
|
+
spec.add_dependency 'version_sorter', '~> 2.2.0'
|
34
33
|
spec.add_dependency 'versionomy', '~> 0.5.0'
|
35
34
|
spec.add_dependency 'tty-prompt', '= 0.6.0'
|
36
35
|
spec.add_dependency 'tty-spinner', '= 0.3.0'
|
data/lib/hu/common.rb
CHANGED
@@ -19,7 +19,7 @@ Config.load_and_set_settings Hu::CONFIG_FILE
|
|
19
19
|
begin
|
20
20
|
unless ENV['SKIP_VERSION_CHECK']
|
21
21
|
version_info = BB::Gem.version_info(check_interval: 900)
|
22
|
-
|
22
|
+
if version_info[:gem_update_available]
|
23
23
|
puts
|
24
24
|
puts "\e[33;1mWoops! \e[0mA newer version of #{version_info[:gem_name]} is available."
|
25
25
|
puts " Please type '\e[1mgem install #{version_info[:gem_name]}\e[0m' to upgrade (v#{version_info[:gem_installed_version]} -> v#{version_info[:gem_latest_version]})."
|
data/lib/hu/deploy.rb
CHANGED
@@ -293,7 +293,7 @@ EOM
|
|
293
293
|
if release_branch_exists && git_revisions[:release] == git_revisions[stag_app_name]
|
294
294
|
puts ' Phase 2/3 '.inverse + ' Your local ' + "release/#{release_tag}".bright + ' (formerly ' + 'develop'.bright + ') is live on ' + stag_app_name.to_s.bright + '.'
|
295
295
|
puts ' Please test here: ' + (app['web_url']).to_s.bright
|
296
|
-
puts ' If everything looks good
|
296
|
+
puts ' If everything looks good you may proceed and finish the release.'
|
297
297
|
puts ' If there are problems: Quit, delete the release branch and start fixing.'
|
298
298
|
puts
|
299
299
|
elsif git_revisions[prod_app_name] != git_revisions[stag_app_name] && !release_branch_exists && git_revisions[:release] != git_revisions[stag_app_name]
|
@@ -403,7 +403,7 @@ EOM
|
|
403
403
|
end
|
404
404
|
|
405
405
|
def show_pipeline_status(pipeline_name, stag_app_name, prod_app_name, release_tag, clear = true)
|
406
|
-
table = TTY::Table.new header: ['', 'commit', 'tag', 'last_modified', 'last_modified_by', 'dynos
|
406
|
+
table = TTY::Table.new header: ['', 'commit', 'tag', 'last_modified', 'last_modified_by', 'dynos', '']
|
407
407
|
busy 'synchronizing', :huroku
|
408
408
|
ts = []
|
409
409
|
workers = []
|
@@ -416,7 +416,7 @@ EOM
|
|
416
416
|
[[0, stag_app_name], [1, prod_app_name]].each do |idx, app_name|
|
417
417
|
workers << Thread.new do
|
418
418
|
# config vars
|
419
|
-
app_config[app_name] = h.config_var.
|
419
|
+
app_config[app_name] = h.config_var.info_for_app(app_name)
|
420
420
|
end
|
421
421
|
|
422
422
|
ts << Thread.new do
|
@@ -428,7 +428,19 @@ EOM
|
|
428
428
|
break if dynos.nil?
|
429
429
|
dp :dynos, dynos
|
430
430
|
|
431
|
-
|
431
|
+
formation = h.formation.list(app_name)
|
432
|
+
|
433
|
+
formation_stats = {}
|
434
|
+
formation.each do |o|
|
435
|
+
formation_stats[o['size']] ||= 0
|
436
|
+
formation_stats[o['size']] += o['quantity']
|
437
|
+
end
|
438
|
+
table_row[5] = formation_stats.map{|k,v|
|
439
|
+
next if 0 == v; "\e[1m#{v}×#{dt = Hu::Cli::Scale::DYNO_TYPES.find { |e| e[:id] == k.downcase }
|
440
|
+
suffix = ""
|
441
|
+
suffix = "\e[30;1m free" if dt[:id] == 'free'
|
442
|
+
"\e[0m" + (dt[:ram]/1024.0).to_s}G"+suffix
|
443
|
+
}.compact.join(', ')
|
432
444
|
|
433
445
|
release_version = dynos.dig(0, 'release', 'version')
|
434
446
|
break if release_version.nil?
|
@@ -465,7 +477,6 @@ EOM
|
|
465
477
|
# table_row[3] += "\n\e[30;1m" + slug_info['updated_at']
|
466
478
|
|
467
479
|
table_row[4] = release_info['user']['email']
|
468
|
-
table_row[5] = dynos.length
|
469
480
|
break
|
470
481
|
end
|
471
482
|
[idx, table_row]
|
data/lib/hu/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- moe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,42 +72,28 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 4.0.2
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: heroics
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - '='
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 0.0.21
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - '='
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: 0.0.21
|
82
|
+
version: 4.0.2
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: platform-api
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
100
86
|
requirements:
|
101
87
|
- - "~>"
|
102
88
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
89
|
+
version: 2.1.0
|
104
90
|
type: :runtime
|
105
91
|
prerelease: false
|
106
92
|
version_requirements: !ruby/object:Gem::Requirement
|
107
93
|
requirements:
|
108
94
|
- - "~>"
|
109
95
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
96
|
+
version: 2.1.0
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
98
|
name: powerbar
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,14 +128,14 @@ dependencies:
|
|
142
128
|
requirements:
|
143
129
|
- - "~>"
|
144
130
|
- !ruby/object:Gem::Version
|
145
|
-
version: 2.
|
131
|
+
version: 2.2.0
|
146
132
|
type: :runtime
|
147
133
|
prerelease: false
|
148
134
|
version_requirements: !ruby/object:Gem::Requirement
|
149
135
|
requirements:
|
150
136
|
- - "~>"
|
151
137
|
- !ruby/object:Gem::Version
|
152
|
-
version: 2.
|
138
|
+
version: 2.2.0
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
140
|
name: versionomy
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -389,7 +375,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
389
375
|
version: '0'
|
390
376
|
requirements: []
|
391
377
|
rubyforge_project:
|
392
|
-
rubygems_version: 2.
|
378
|
+
rubygems_version: 2.6.8
|
393
379
|
signing_key:
|
394
380
|
specification_version: 4
|
395
381
|
summary: Heroku Utility.
|