123456789_123456789_123456789_123456789_123456789_

Class: Bundler::CLI::Plugin

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Bundler::Thor
Defined in: lib/bundler/cli/plugin.rb

Constant Summary

::Bundler::Thor - Inherited

AmbiguousTaskError, DynamicTask, HELP_MAPPINGS, HiddenTask, TEMPLATE_EXTNAME, THOR_RESERVED_WORDS, Task, UndefinedTaskError, VERSION

Class Method Summary

::Bundler::Thor - Inherited

.check_unknown_options!

Extend check unknown options to accept a hash of conditions.

.command_help

Prints help information for the given command.

.default_command

Sets the default command when thor is executed without an explicit command to be called.

.default_task
.desc

Defines the usage and the description of the next command.

.disable_required_check!

Disable the check for required options for the given commands.

.help

Prints help information for this class.

.long_desc

Defines the long description of the next command.

.map

Maps an input to a command.

.method_option

Adds an option to the set of method options.

.method_options

Declares the options for the next command to be declared.

.option
.options
.package_name

Allows for custom “Command” package naming.

.printable_commands

Returns commands ready to be printed.

.printable_tasks
.register

Registers another ::Bundler::Thor subclass as a command.

.stop_on_unknown_option!

Stop parsing of options as soon as an unknown option or a regular argument is encountered.

.subcommand, .subcommand_classes, .subcommands,
.subtask

Alias for Thor.subcommand.

.subtasks

Alias for Thor.subcommands.

.task_help
.banner

The banner for this class.

.create_task
.find_command_possibilities

this is the logic that takes the command name passed in by the user and determines whether it is an unambiguous substrings of a command or alias name.

.find_task_possibilities
.normalize_task_name
.retrieve_task_name
.subcommand_help,
.subtask_help
.check_unknown_options?

Overwrite check_unknown_options? to take subcommands and options into account.

.disable_required_check?, .stop_on_unknown_option?, .baseclass, .create_command,
.disable_required_check

help command has the required check disabled by default.

.dispatch

The method responsible for dispatching given the args.

.dynamic_command_class, .initialize_added,
.normalize_command_name

receives a (possibly nil) command name and returns a name that is in the commands hash.

.retrieve_command_name

Retrieve the command name from given args.

.stop_on_unknown_option

Instance Attribute Summary

Instance Method Summary

::Bundler::Thor - Inherited

::Bundler::Thor::Base - Included

#initialize

It receives arguments in an Array and two hashes, one for options and other for configuration.

Instance Method Details

#install(*plugins)

[ GitHub ]

  
# File 'lib/bundler/cli/plugin.rb', line 20

def install(*plugins)
  Bundler::Plugin.install(plugins, options)
end