class Locd::CLI::Command::Site

TODO Doc me pls

Public Class Methods

agent_class() click to toggle source

Helpers

# File lib/locd/cli/command/site.rb, line 23
def self.agent_class
  Locd::Agent::Site
end

Protected Instance Methods

agent_table(agents) click to toggle source
# File lib/locd/cli/command/site.rb, line 31
def agent_table agents
  Locd::CLI::Table.build do |t|
    t.col "PID", &:pid
    t.col "LEC", desc: "Last Exit Code", &:last_exit_code
    t.col "URL", &:url
    t.col "Port", &:port
    t.col "File" do |agent| agent_file agent end
    
    t.rows agents
  end
end