module MStrap
Overview
Defines top-level constants and shared utilities
Defined in:
mstrap.crmstrap/cli.cr
mstrap/cli_options.cr
mstrap/configuration.cr
mstrap/def.cr
mstrap/defs/config_def.cr
mstrap/defs/pkg_def.cr
mstrap/defs/profile_config_def.cr
mstrap/defs/profile_def.cr
mstrap/defs/project_def.cr
mstrap/defs/runtime_def.cr
mstrap/defs/user_def.cr
mstrap/dsl.cr
mstrap/dsl/logging.cr
mstrap/dsl/system.cr
mstrap/errors.cr
mstrap/paths.cr
mstrap/platform.cr
mstrap/platform/darwin/macos.cr
mstrap/platform/linux.cr
mstrap/platform/linux/archlinux.cr
mstrap/platform/linux/debian.cr
mstrap/platform/linux/fedora.cr
mstrap/platform/linux/rhel.cr
mstrap/profile_fetcher.cr
mstrap/project.cr
mstrap/runtime.cr
mstrap/runtimes/crystal.cr
mstrap/runtimes/go.cr
mstrap/runtimes/node.cr
mstrap/runtimes/php.cr
mstrap/runtimes/python.cr
mstrap/runtimes/ruby.cr
mstrap/runtimes/rust.cr
mstrap/step.cr
mstrap/steps/compose_step.cr
mstrap/steps/debug_step.cr
mstrap/steps/dependencies_step.cr
mstrap/steps/init_step.cr
mstrap/steps/projects_step.cr
mstrap/steps/runtimes_step.cr
mstrap/steps/services_step.cr
mstrap/steps/shell_step.cr
mstrap/steps/steps_step.cr
mstrap/steps/update_profiles_step.cr
mstrap/supports/ca_cert_installer.cr
mstrap/supports/docker.cr
mstrap/supports/mkcert.cr
mstrap/templates/Brewfile.cr
mstrap/templates/env_sh.cr
mstrap/templates/nginx.conf.cr
mstrap/templates/services-internal.yml.cr
mstrap/user.cr
mstrap/version.cr
mstrap/web_bootstrapper.cr
Constant Summary
-
COMPILED_AT =
{{ (`date -u`).chomp.stringify }}
-
Date and time when binary was compiled
-
Log =
::Log.for("mstrap")
-
LogFormatter =
::Log::Formatter.new do |entry, io| if io.tty? io << entry.message else label = entry.severity.none? ? "ANY" : entry.severity.to_s ((((io << "[") << entry.timestamp) << " PID#") << Process.pid) << "] " ((io << (label.rjust(5))) << " -- : ") << entry.message end end
-
VERSION =
{{ (`shards version`).chomp.stringify }}
-
mstrap
version
Class Method Summary
-
.debug=(value)
Set debug mode for
mstrap
-
.debug?
Returns whether or not
mstrap
is in debug mode. -
.initialize_logger! : Nil
Sets up Log instance that can be used to log to the mstrap log file.
-
.mstrapped?
Returns whether or not the
mstrap
environment file (env.sh
) has been loaded into the environment. -
.tls_client
Returns a TLS client that uses a local version of the cURL CA bundle.
Class Method Detail
Returns whether or not mstrap
is in debug mode.
NOTE This is not the same as whether it was compiled in debug mode.
Sets up Log instance that can be used to log to the mstrap log file.
When MStrap.debug?
is set to true
, this also logs messages to STDOUT
.
Returns whether or not the mstrap
environment file (env.sh
) has been
loaded into the environment.