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

extra_args=
  • References/Ruby on Rails/Ruby/Classes/Gem/Gem::Command

extra_args=(value) Class Public methods

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

defaults_str() Instance Public methods Override to display the default values

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
specific_extra_args
  • References/Ruby on Rails/Ruby/Classes/Gem/Gem::Command

specific_extra_args(cmd) Class Public methods Return an array of extra arguments

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

add_common_option(*args, &handler) Class Public methods

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

get_all_gem_names() Instance Public methods Get all gem names from the command

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

show_lookup_failure(gem_name, version, errors, domain) Instance Public methods Display

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

description() Instance Public methods Override to display a longer description

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

get_one_gem_name() Instance Public methods Get a single gem name from the command

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

merge_options(new_options) Instance Public methods Merge a set of command options

2025-01-10 15:47:30