struct StatusPage::ProgramInfo

Included Modules

Defined in:

status_page/program_info.cr

Constant Summary

ARGS = ARGV
BUILD_HOST = {{ (`hostname`).stringify }}
BUILT_BY = {{ env("USER") }}
BUILT_ON = Time.unix({{ (`date +%s`).strip + "_i64" }})
COMMIT = {{ (`sh -c '[ -e .git/HEAD ] && head -c 7 .git/HEAD' || echo 'unknown'`).stringify }}
HOST_OS = self.host_os
RUNNING_AS = (`whoami`).strip
STARTED_AT = Time.utc

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module StatusPage::Section

html(io : IO, &) html, name : String name, page_url(**params) page_url, register! register!, render(io : IO) render, render_full(params : HTTP::Params, io : IO) render_full

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.host_os #

[View source]
def self.to_s(io) #

[View source]

Instance Method Detail

def initialize #

[View source]
def name #

[View source]
def render(io : IO) #

[View source]