module Stacker
Defined in:
stacker.crstacker/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
- .close_log_file!
- .config
- .config=(config : Config | Nil)
-
.config?
Return the loaded configuration, or nil when none has been loaded yet.
- .load_config(config_path)
- .log_file
- .log_to_stdout?
- .logger
- .logger=(backend : Log::Backend | Nil)
-
.reopen_log_file!
Reopen the log file after a rotation.
- .setup_log
- .setup_signals
- .start_server
- .stop_server
-
.unknown_args(args = ARGV.dup)
Return the arguments Stacker does not act on.
- .version
Class Method Detail
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.
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.