Class: Kamal::Cli::Base
- Inherits:
-
Thor
- Object
- Thor
- Kamal::Cli::Base
- Includes:
- SSHKit::DSL
- Defined in:
- lib/kamal/cli/base.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args = [], local_options = {}, config = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(args = [], local_options = {}, config = {}) ⇒ Base
Returns a new instance of Base.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/kamal/cli/base.rb', line 25 def initialize(args = [], = {}, config = {}) if config[:current_command].is_a?(Kamal::Cli::Alias::Command) # When Thor generates a dynamic command, it doesn't attempt to parse the arguments. # For our purposes, it means the arguments are passed in args rather than local_options. super([], args, config) else super end initialize_commander unless KAMAL.configured? end |