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 "yup \#{Yup::VERSION}\n\nUsage: \#{$0} [OPTION] ... FORWARD_TO_HOST\n\nOptions:\n  -h, --help                 Show help\n  --listen <host:port>, -l   Listen on an address (default localhost:8080)\n  --status-code <code>       Send status code to a client on request (default 200)\n  --resend-delay <seconds>   Resend failed requests in seconds (default 60.0)\n  --watermark <number>       Maximum of concurrent requests (default 100)\n  --loglevel <level>         Logging severity (default fatal).\n                             Available log levels: fatal, error, warn, info, debug.\n  --persistent <path>        Use persistent queue.\n  --timeout <seconds>        Timeout for answer from FORWARD_TO_HOST (default 60.0)\n  --retry-unless-2xx         Retry even if status code not 2xx.\n\nExamples:\n  yupd --listen 0.0.0.0:8081 --status-code 201 errbit.host.somewhere\n\n"
end