Class: Superhosting::Cli::Error::AmbiguousCommand

Inherits:
Base
  • Object
show all
Defined in:
lib/superhosting/cli/error/ambiguous_command.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg: 'Ambiguous command', commands:, path: '') ⇒ AmbiguousCommand

Returns a new instance of AmbiguousCommand.



5
6
7
# File 'lib/superhosting/cli/error/ambiguous_command.rb', line 5

def initialize(msg: 'Ambiguous command', commands:, path: '')
  super(error: "#{msg}: #{path.join(' ')} (#{commands.join('|')})")
end