Top Level Namespace

Defined Under Namespace

Modules: Yup

Constant Summary collapse

LEVELS =
{
  "fatal" => Logger::FATAL,
  "error" => Logger::ERROR,
  "warn"  => Logger::WARN,
  "info"  => Logger::INFO,
  "debug" => Logger::DEBUG
}.freeze

Instance Method Summary collapse

Instance Method Details

#usageObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'bin/yupd', line 9

def usage
  puts <<-EOF
yup #{Yup::VERSION}

Usage: #{$0} [OPTION] ... FORWARD_TO_HOST

Options:
  -h, --help                 Show help
  --listen <host:port>, -l   Listen on an address (default localhost:8080)
  --status-code <code>       Send status code to a client on request (default 200)
  --resend-delay <seconds>   Resend failed requests in seconds (default 60.0)
  --watermark <number>       Maximum of concurrent requests (default 100)
  --loglevel <level>         Logging severity (default fatal).
                             Available log levels: fatal, error, warn, info, debug.
  --persistent <path>        Use persistent queue.
  --timeout <seconds>        Timeout for answer from FORWARD_TO_HOST (default 60.0)
  --retry-unless-2xx         Retry even if status code not 2xx.

Examples:
  yupd --listen 0.0.0.0:8081 --status-code 201 errbit.host.somewhere

EOF
end