Method: Bundler::Thor.command_exists?

Defined in:
lib/bundler/vendor/thor/lib/thor.rb

.command_exists?(command_name) ⇒ Boolean

Checks if a specified command exists.

Parameters

command_name<String>

The name of the command to check for existence.

Returns

Boolean

true if the command exists, false otherwise.

Returns:

  • (Boolean)
[View source]

449
450
451
# File 'lib/bundler/vendor/thor/lib/thor.rb', line 449

def command_exists?(command_name) #:nodoc:
  commands.keys.include?(normalize_command_name(command_name))
end