module Stacker

Defined in:

stacker.cr
stacker/cli.cr
stacker/config.cr
stacker/context.cr
stacker/errors.cr
stacker/logger.cr
stacker/processor.cr
stacker/renderer.cr
stacker/runner.cr
stacker/server.cr
stacker/value.cr

Constant Summary

GIT_REF = {{ (`git log -n 1 --format=\"%H\" | head -c 8`).chomp.stringify }}
VERSION = {{ (`shards version /home/runner/work/stacker/stacker/src`).chomp.stringify }}

Class Method Summary

Class Method Detail

def self.close_log_file! #

[View source]
def self.config #

[View source]
def self.config=(config : Config | Nil) #

[View source]
def self.config? #

Return the loaded configuration, or nil when none has been loaded yet.


[View source]
def self.load_config(config_path) #

[View source]
def self.log_file #

[View source]
def self.log_to_stdout? #

[View source]
def self.logger #

[View source]
def self.logger=(backend : Log::Backend | Nil) #

[View source]
def self.reopen_log_file! #

Reopen the log file after a rotation.

The backend memoizes the File it writes to, so it has to be dropped as well: keeping it would go on writing to the rotated (renamed) file forever.


[View source]
def self.setup_log #

[View source]
def self.setup_signals #

[View source]
def self.start_server #

[View source]
def self.stop_server #

[View source]
def self.unknown_args(args = ARGV.dup) #

Return the arguments Stacker does not act on.

Anything left once the subcommand and Stacker's own flags are removed would be silently ignored, so the caller reports it instead of pretending to honour it.


[View source]
def self.version #

[View source]