module

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.

Source
mstrapped?

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

Source
tls_client

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

Source
verbose=(value)

Set verbose mode for mstrap

Source
verbose?

Returns whether or not mstrap is in verbose mode.

Source

Nested types