module MStrap

Overview

Defines top-level constants and shared utilities

Defined in:

mstrap.cr
mstrap/bootstrapper.cr
mstrap/bootstrappers/default_bootstrapper.cr
mstrap/bootstrappers/script_bootstrapper.cr
mstrap/bootstrappers/web_bootstrapper.cr
mstrap/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_config_def.cr
mstrap/defs/runtime_def.cr
mstrap/defs/runtimes_config_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/runtime_manager.cr
mstrap/runtime_managers/asdf.cr
mstrap/runtime_managers/mise.cr
mstrap/runtime_managers/rustup.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/mise_installer.cr
mstrap/supports/mkcert.cr
mstrap/supports/rustup_installer.cr
mstrap/supports/strap_sh_installer.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

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

Class Method Detail

def self.initialize_logger! : Nil #

Sets up Log instance that can be used to log to the mstrap log file. When MStrap.verbose? is set to true, this also logs messages to STDOUT.


[View source]
def self.mstrapped? #

Returns whether or not the mstrap environment file (env.sh) has been loaded into the environment.


[View source]
def self.tls_client #

Returns a TLS client that uses a local version of the cURL CA bundle.


[View source]
def self.verbose=(value) #

Set verbose mode for mstrap


[View source]
def self.verbose? #

Returns whether or not mstrap is in verbose mode.


[View source]