abstract class MStrap::Step
- MStrap::Step
- Reference
- Object
Included Modules
Direct Known Subclasses
- MStrap::Steps::ComposeStep
- MStrap::Steps::DebugStep
- MStrap::Steps::DependenciesStep
- MStrap::Steps::InitStep
- MStrap::Steps::ProjectsStep
- MStrap::Steps::RuntimesStep
- MStrap::Steps::ServicesStep
- MStrap::Steps::ShellStep
- MStrap::Steps::StepsStep
- MStrap::Steps::UpdateProfilesStep
Defined in:
mstrap/step.crConstructors
-
.new(config : Configuration, cli_options : CLIOptions, args : Array(String) = [] of String)
Initializes the step.
Class Method Summary
-
.description
Short description of the step.
- .long_description
-
.requires_mstrap?
Whether the step requires the mstrap environment to be loaded (
env.sh
) -
.requires_shell_restart?
Whether the step requires the shell to be restarted after being run
-
.setup_cmd!(cmd : Commander::Command)
Hook that can be implemented to modify CLI command flags or subcommands.
Instance Method Summary
-
#args : Array(String)
Extra arguments passed to the step not processed by the main CLI
-
#bootstrap
Executes the step
-
#config : MStrap::Configuration
Loaded configuration for mstrap
-
#options : MStrap::CLIOptions
Options passed from the CLI
-
#profile : MStrap::Defs::ProfileDef
Resolved profile for mstrap
-
#runtime_managers : Array(MStrap::RuntimeManager)
Language runtime managers in use
-
#runtimes : Hash(String, MStrap::Runtime)
Language runtimes
-
#user : MStrap::User
User configured for mstrap
Instance methods inherited from module MStrap::DSL::System
cmd(env : Hash | Nil, command : String, args : Array(String) | Nil, **kwargs)
cmd,
has_command?(command_name : String, **kwargs) : Bool
has_command?
Instance methods inherited from module MStrap::DSL::Logging
log(msg)
log,
logc(msg)
logc,
logd(msg)
logd,
logn(msg)
logn,
logw(msg)
logw,
success(msg)
success
Constructor Detail
def self.new(config : Configuration, cli_options : CLIOptions, args : Array(String) = [] of String)
#
Initializes the step. Called by MStrap::Bootsrapper
. Typically not
called directly.
Class Method Detail
def self.requires_shell_restart?
#
Whether the step requires the shell to be restarted after being run
def self.setup_cmd!(cmd : Commander::Command)
#
Hook that can be implemented to modify CLI command flags or subcommands.