Sha256: 660d3b6ed28be9dcd70fc81c8bc72472878aee8cdf13cf51cdc2a1003c1785d6
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
# encoding: utf-8 module LocalPac class ApplicationStatus private include Pager attr_reader :should_page public def initialize(options = {}) @should_page = options.fetch(:pager, :true) config = options.fetch(:config, LocalPac.config) @actions = [] @actions << Actions::PrintTitle.new('System Information') @actions << Actions::GetSystemInformation.new @actions << Actions::PrintNewline.new(2) @actions << Actions::PrintTitle.new('Application Configuration') @actions << Actions::ShowConfig.new @actions << Actions::PrintNewline.new(2) @actions << Actions::PrintTitle.new('Process Information') @actions << Actions::ShowProcessInformation.new(config.pid_file) @actions << Actions::PrintNewline.new(2) @actions << Actions::PrintTitle.new('Available Proxy.Pac-Files') @actions << Actions::ShowAvailableProxyPacFiles.new(config.local_storage) end def show page if should_page @actions.each(&:run) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
local_pac-0.5.0 | lib/local_pac/application_status.rb |