Returns a valid argument to make_expires
and the renewer or nil.
Given true
, nil
, or Numeric
, returns that value and nil
(no actual renewer). Otherwise it returns an expiry value from calling it.renew
and the renewer.
Merge a set of command options with the set of default options (without modifying the default option hash).
Indicated, based on the requested domain, if local gems should be considered.
Builds and installs indices.
Load a dependency management file.
Regenerates plugin wrappers after removal.
Display an error message in a location expected to get error messages. Will ask question
if it is not nil.
Terminate the application with exit code status
, running any exit handlers that might have been defined.
Return a progress reporter object chosen from the current verbosity.
Return a download reporter object chosen from the current verbosity
Merges a base path base
, with relative path rel
, returns a modified base path.
Generates a new key (pair).
If a String
is given as the first argument, it generates a new random key for the algorithm specified by the name just as ::generate_parameters
does. If an OpenSSL::PKey::PKey
is given instead, it generates a new random key for the same algorithm as the key, using the parameters the key contains.
See ::generate_parameters
for the details of options and the given block.
pkey_params = OpenSSL::PKey.generate_parameters("DSA", "dsa_paramgen_bits" => 2048) pkey_params.priv_key #=> nil pkey = OpenSSL::PKey.generate_key(pkey_params) pkey.priv_key #=> #<OpenSSL::BN 6277...
Generates a mask bit for a priority level. See mask=
Generates a mask value for priority levels at or below the level specified. See mask=