Type:
Class

Base class for all Gem commands. When creating a new gem command, define initialize, execute, arguments, defaults_str, description and usage (as appropriate). See the above mentioned methods for details.

A very good example to look at is Gem::Commands::ContentsCommand

handles?
  • References/Ruby on Rails/Ruby/Classes/Gem/Gem::Command

handles?(args) Instance Public methods True if the command handles the given

2025-01-10 15:47:30
wrap
  • References/Ruby on Rails/Ruby/Classes/Gem/Gem::Command

wrap(text, width) Instance Private methods Wraps text to width

2025-01-10 15:47:30
show_help
  • References/Ruby on Rails/Ruby/Classes/Gem/Gem::Command

show_help() Instance Public methods Display the help message for the command

2025-01-10 15:47:30
build_args
  • References/Ruby on Rails/Ruby/Classes/Gem/Gem::Command

build_args() Class Public methods Arguments used when building gems

2025-01-10 15:47:30
common_options
  • References/Ruby on Rails/Ruby/Classes/Gem/Gem::Command

common_options() Class Public methods

2025-01-10 15:47:30
execute
  • References/Ruby on Rails/Ruby/Classes/Gem/Gem::Command

execute() Instance Public methods Override to provide command handling.

2025-01-10 15:47:30
handle_options
  • References/Ruby on Rails/Ruby/Classes/Gem/Gem::Command

handle_options(args) Instance Public methods Handle the given list of arguments

2025-01-10 15:47:30
extra_args
  • References/Ruby on Rails/Ruby/Classes/Gem/Gem::Command

extra_args() Class Public methods

2025-01-10 15:47:30
add_extra_args
  • References/Ruby on Rails/Ruby/Classes/Gem/Gem::Command

add_extra_args(args) Instance Public methods Adds extra args from ~/.gemrc

2025-01-10 15:47:30
usage
  • References/Ruby on Rails/Ruby/Classes/Gem/Gem::Command

usage() Instance Public methods Override to display the usage for an individual

2025-01-10 15:47:30