Results for: "strip"

No documentation available

Performs the uninstall of the gem. This removes the spec, the Gem directory, and the cached .gem file.

Prints a formatted backtrace to the errors stream if backtraces are enabled.

No documentation available

Tests if the given command exists in file1, or optionally file2.

Example:

sh[?e, "foo"]
sh[:e, "foo"]
sh["e", "foo"]
sh[:exists?, "foo"]
sh["exists?", "foo"]

Executes the given command with the options parameter.

Example:

print sh.system("ls", "-l")
sh.system("ls", "-l") | sh.head > STDOUT

Executes a block as self

Example:

sh.transact { system("ls", "-l") | head > STDOUT }
No documentation available

Sets userinfo, argument is string like ‘name:pass’

returns the userinfo, either as ‘user’ or ‘user:password’

Args

v

String

Description

public setter for the host component v. (with validation)

see also URI::Generic.check_host

Usage

require 'uri'

uri = URI.parse("http://my.example.com")
uri.host = "foo.com"
# =>  "foo.com"
uri
#=> #<URI::HTTP:0x000000008e89e8 URL:http://foo.com>

extract the host part of the URI and unwrap brackets for IPv6 addresses.

This method is same as URI::Generic#host except brackets for IPv6 (and future IP) addresses are removed.

u = URI(“http://[::1]/bar”) p u.hostname #=> “::1” p u.host #=> “[::1]”

set the host part of the URI as the argument with brackets for IPv6 addresses.

This method is same as URI::Generic#host= except the argument can be bare IPv6 address.

u = URI(“foo/bar”) p u.to_s #=> “foo/bar” u.hostname = “::1” p u.to_s #=> “[::1]/bar

If the argument seems IPv6 address, it is wrapped by brackets.

Args

str

String to search

schemes

Patterns to apply to str

Description

Attempts to parse and merge a set of URIs If no block given , then returns the result, else it calls block for each element in result.

see also URI::Parser.make_regexp

Args

str

String to search

schemes

Patterns to apply to str

Description

Attempts to parse and merge a set of URIs If no block given , then returns the result, else it calls block for each element in result.

see also URI::Parser.make_regexp

Starts the CGI process with the given environment env and standard input and output stdin and stdout.

The host this request is for

Sets the response’s status to the status code

A SimpleServer only yields when you start it

Performs the standard operations for daemonizing a process. Runs a block, if given.

Adds listeners from address and port to the server. See WEBrick::Utils::create_listeners for details.

Starts the server and runs the block for each connection. This method does not return until the server is stopped from a signal handler or another thread using stop or shutdown.

If the block raises a subclass of StandardError the exception is logged and ignored. If an IOError or Errno::EBADF exception is raised the exception is ignored. If an Exception subclass is raised the exception is logged and re-raised which stops the server.

To completely shut down a server call shutdown from ensure:

server = WEBrick::GenericServer.new
# or WEBrick::HTTPServer.new

begin
  server.start
ensure
  server.shutdown
end

Stops the server from accepting new connections.

Stores value in database with key as the index. value is converted to YAML before being stored.

Returns value

Returns true if this process is stopped. This is only returned if the corresponding wait call had the WUNTRACED flag set.

Search took: 4ms  ·  Total Results: 1744