Class: Kamal::Cli::Alias::Command

Inherits:
Thor::DynamicCommand
  • Object
show all
Defined in:
lib/kamal/cli/alias/command.rb

Instance Method Summary collapse

Instance Method Details

#run(instance, args = []) ⇒ Object



2
3
4
5
6
7
8
# File 'lib/kamal/cli/alias/command.rb', line 2

def run(instance, args = [])
  if (_alias = KAMAL.config.aliases[name])
    Kamal::Cli::Main.start(Shellwords.split(_alias.command) + ARGV[1..-1])
  else
    super
  end
end