lib/gush/cli/overview.rb in gush-3.0.0 vs lib/gush/cli/overview.rb in gush-4.0.0
- old
+ new
@@ -32,10 +32,11 @@
end
end
end
private
+
def rows
[].tap do |rows|
columns.each_pair do |name, value|
rows << [{alignment: :center, value: name}, value]
rows << :separator if name != "Status"
@@ -89,9 +90,10 @@
end
end
def jobs_by_type(type)
return sorted_jobs if type == :all
+
jobs.select{|j| j.public_send("#{type}?") }
end
def sorted_jobs
workflow.jobs.sort_by do |job|