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 mask bit for a priority level. See mask=
Generates a mask value for priority levels at or below the level specified. See mask=
Open a server listening for connections at uri
with configuration config
.
The DRbProtocol
module asks each registered protocol in turn to try to open a server at the URI
. Each protocol signals that it does not handle that URI
by raising a DRbBadScheme
error. If no protocol recognises the URI
, then a DRbBadURI
error is raised. If a protocol accepts the URI
, but an error occurs in opening it, the underlying error is passed on to the caller.
Open a server listening for connections at uri
with configuration config
.
The DRbProtocol
module asks each registered protocol in turn to try to open a server at the URI
. Each protocol signals that it does not handle that URI
by raising a DRbBadScheme
error. If no protocol recognises the URI
, then a DRbBadURI
error is raised. If a protocol accepts the URI
, but an error occurs in opening it, the underlying error is passed on to the caller.
Notifies observers of a change in state. See also Observable#notify_observers
Displays an error statement
to the error output location. Asks a question
if given.
Terminates the RubyGems process with the given exit_code
Change the current process’s real and effective user ID to that specified by user. Returns the new user ID. Not available on all platforms.
[Process.uid, Process.euid] #=> [0, 0] Process::UID.change_privilege(31) #=> 31 [Process.uid, Process.euid] #=> [31, 31]
Change the current process’s real and effective group ID to that specified by group. Returns the new group ID. Not available on all platforms.
[Process.gid, Process.egid] #=> [0, 0] Process::GID.change_privilege(33) #=> 33 [Process.gid, Process.egid] #=> [33, 33]
Creates a new DH
instance from scratch by generating the private and public components alike.
size is an integer representing the desired key size. Keys smaller than 1024 bits should be considered insecure.
generator is a small number > 1, typically 2 or 5.
Creates a new DSA
instance by generating a private/public key pair from scratch.
size is an integer representing the desired key size.
Creates a new EC
instance with a new random private and public key.
Generates an RSA
keypair. size is an integer representing the desired key size. Keys smaller than 1024 should be considered insecure. exponent is an odd number normally 3, 17, or 65537.
Gets the global do_not_reverse_lookup
flag.
BasicSocket.do_not_reverse_lookup #=> false
Sets the global do_not_reverse_lookup
flag.
The flag is used for initial value of do_not_reverse_lookup
for each socket.
s1 = TCPSocket.new("localhost", 80) p s1.do_not_reverse_lookup #=> true BasicSocket.do_not_reverse_lookup = false s2 = TCPSocket.new("localhost", 80) p s2.do_not_reverse_lookup #=> false p s1.do_not_reverse_lookup #=> true