class Guac::Commands::Status
Public Class Methods
new(options)
click to toggle source
# File lib/guac/commands/status.rb, line 7 def initialize(options) @options = options @repos = Guac::Repo.build_from_config end
Public Instance Methods
execute(_input: $stdin, output: $stdout)
click to toggle source
# File lib/guac/commands/status.rb, line 12 def execute(_input: $stdin, output: $stdout) threads = @repos.map do |repo| Thread.new do response = [repo.status] response = Colors.paint(response) response.unshift(repo.name.bold.colorize(:blue)) response.join("\n") end end output.puts threads.map(&:value) end