summaryrefslogtreecommitdiff
path: root/lib/oxidized/input/input.rb
blob: da8ff5d49a7e41dd81f8cd3ccf007f815f16d9a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module Oxidized
  class PromptUndetect < OxidizedError; end
  class Input
    include Oxidized::Config::Vars

    RescueFail = {
      :debug => [
        Errno::ECONNREFUSED,
      ],
      :warn => [
        IOError,
        PromptUndetect,
        Timeout::Error,
        Errno::ECONNRESET,
        Errno::EHOSTUNREACH,
        Errno::ENETUNREACH,
        Errno::EPIPE,
        Errno::ETIMEDOUT,
      ],
    }
  end
end