Class: Oxidized::Input
- Inherits:
-
Object
show all
- Includes:
- Config::Vars, CLI, SemanticLogger::Loggable
- Defined in:
- lib/oxidized/input/cli.rb,
lib/oxidized/input/input.rb
Defined Under Namespace
Modules: CLI
Constant Summary
collapse
- RESCUE_FAIL =
{
Errno::ECONNREFUSED => :debug,
IOError => :warn,
PromptUndetect => :warn,
Timeout::Error => :warn,
Errno::ECONNRESET => :warn,
Errno::EHOSTUNREACH => :warn,
Errno::ENETUNREACH => :warn,
Errno::EPIPE => :warn,
Errno::ETIMEDOUT => :warn
}.freeze
Instance Attribute Summary
Attributes included from CLI
#node
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from CLI
#connect_cli, #disconnect_cli, #get, #initialize, #login, #newline, #password, #post_login, #pre_logout, #username
#vars
Class Method Details
.config_name ⇒ Object
28
29
30
|
# File 'lib/oxidized/input/input.rb', line 28
def self.config_name
name.split('::').last.downcase
end
|
.rescue_fail ⇒ Object
Returns a hash mapping exception classes to their log level
24
25
26
|
# File 'lib/oxidized/input/input.rb', line 24
def self.rescue_fail
RESCUE_FAIL.dup
end
|
.to_sym ⇒ Object
32
33
34
|
# File 'lib/oxidized/input/input.rb', line 32
def self.to_sym
config_name.to_sym
end
|
Instance Method Details
#config_name ⇒ Object
36
37
38
|
# File 'lib/oxidized/input/input.rb', line 36
def config_name
self.class.config_name
end
|
#to_sym ⇒ Object
40
41
42
|
# File 'lib/oxidized/input/input.rb', line 40
def to_sym
self.class.to_sym
end
|