Flowdock
class
Importance_2
v2_1_10 - Show latest stable - 0 notes - Superclass: Object

Gem::ConfigFile RubyGems options and gem command options from gemrc.

gemrc is a YAML file that uses strings to match gem command arguments and symbols to match RubyGems options.

Gem command arguments use a String key that matches the command name and allow you to specify default arguments:

install: --no-rdoc --no-ri
update: --no-rdoc --no-ri

You can use gem: to set default arguments for all commands.

RubyGems options use symbol keys. Valid options are:

:backtrace

See #backtrace

:sources

Sets Gem::sources

:verbose

See #verbose

gemrc files may exist in various locations and are read and merged in the following order:

  • system wide (/etc/gemrc)

  • per user (~/.gemrc)

  • per environment (gemrc files listed in the GEMRC environment variable)

Constants

YAMLErrors = [ArgumentError]

SYSTEM_WIDE_CONFIG_FILE = File.join system_config_path, 'gemrc'

PLATFORM_DEFAULTS = {}

OPERATING_SYSTEM_DEFAULTS = {}

DEFAULT_UPDATE_SOURCES = true

DEFAULT_VERBOSITY = true

DEFAULT_BULK_THRESHOLD = 1000

DEFAULT_BACKTRACE = false

Attributes

[R] hash
[R] ssl_client_cert

Path name of directory or file of openssl client certificate, used for remote https connection with client authentication

[RW] ssl_ca_cert

Path name of directory or file of openssl CA certificate, used for remote https connection

[R] ssl_verify_mode

openssl verify mode value, used for remote https connection

[RW] disable_default_gem_server

True if we want to force specification of gem server when pushing a gem

[RW] update_sources

True if we want to update the SourceInfoCache every time, false otherwise

[RW] verbose

Verbose level of output:

  • false – No output

  • true – Normal output

  • :loud – Extra output

[RW] bulk_threshold

Bulk threshold value. If the number of missing gems are above this threshold value, then a bulk download technique is used. (deprecated)

[W] backtrace

True if we print backtraces on errors.

[RW] home

Where to install gems (deprecated)

[RW] path

Where to look for gems (deprecated)

[R] args

List of arguments supplied to the config file object.

Show files where this class is defined (1 file)
Register or log in to add new notes.