- Reset KAMAL on alias command, rather than relying on checking "invoked_via_subcommand" - Validate the accessories roles when loading the configuration not later on when trying to access them
11 lines
266 B
Ruby
11 lines
266 B
Ruby
class Kamal::Cli::Alias::Command < Thor::DynamicCommand
|
|
def run(instance, args = [])
|
|
if (_alias = KAMAL.config.aliases[name])
|
|
KAMAL.reset
|
|
Kamal::Cli::Main.start(Shellwords.split(_alias.command) + ARGV[1..-1])
|
|
else
|
|
super
|
|
end
|
|
end
|
|
end
|