MStrap
Defines top-level constants and shared utilities
Constants
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 methods
initialize_logger!
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.
mstrapped?
Returns whether or not the mstrap environment file (env.sh) has been
loaded into the environment.
Nested types
- MStrap::Bootstrapper
- MStrap::Bootstrappers
- MStrap::CACertInstaller
- MStrap::CLI
- MStrap::CLIOptions
- MStrap::Configuration
- MStrap::ConfigurationLoadError
- MStrap::ConfigurationNotFoundError
- MStrap::DNSMasq
- MStrap::DSL
- MStrap::Darwin
- MStrap::Defs
- MStrap::Docker
- MStrap::GitProfileFetchError
- MStrap::InvalidProfileUrlError
- MStrap::InvalidRuntimeManagerError
- MStrap::Linux
- MStrap::MStrapError
- MStrap::MiseInstaller
- MStrap::Mkcert
- MStrap::Paths
- MStrap::Platform
- MStrap::ProfileChecksumMismatchError
- MStrap::ProfileFetchError
- MStrap::ProfileFetcher
- MStrap::Project
- MStrap::Runtime
- MStrap::RuntimeManager
- MStrap::RuntimeManagers
- MStrap::RuntimeSetupError
- MStrap::Runtimes
- MStrap::RustupInstaller
- MStrap::Step
- MStrap::Steps
- MStrap::StrapShInstaller
- MStrap::UnsupportedLanguageRuntimeManagerError
- MStrap::User