summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/input/ssh.rb2
-rw-r--r--lib/oxidized/node.rb4
-rw-r--r--lib/oxidized/nodes.rb4
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/oxidized/input/ssh.rb b/lib/oxidized/input/ssh.rb
index bd0a459..dae1d74 100644
--- a/lib/oxidized/input/ssh.rb
+++ b/lib/oxidized/input/ssh.rb
@@ -13,7 +13,7 @@ module Oxidized
],
}
include CLI
- class NoShell < StandardError; end
+ class NoShell < OxidizedError; end
def connect node
@node = node
diff --git a/lib/oxidized/node.rb b/lib/oxidized/node.rb
index 5a8eb36..0cb5cb3 100644
--- a/lib/oxidized/node.rb
+++ b/lib/oxidized/node.rb
@@ -1,7 +1,7 @@
module Oxidized
require 'resolv'
- class MethodNotFound < StandardError; end
- class ModelNotFound < StandardError; end
+ class MethodNotFound < OxidizedError; end
+ class ModelNotFound < OxidizedError; end
class Node
attr_reader :name, :ip, :model, :input, :output, :group, :auth, :prompt
attr_accessor :last, :running, :user, :msg, :from
diff --git a/lib/oxidized/nodes.rb b/lib/oxidized/nodes.rb
index 42c18cb..c70e6fd 100644
--- a/lib/oxidized/nodes.rb
+++ b/lib/oxidized/nodes.rb
@@ -1,8 +1,8 @@
module Oxidized
require 'oxidized/node'
require 'ipaddr'
- class Oxidized::NotSupported < StandardError; end
- class Oxidized::NodeNotFound < StandardError; end
+ class Oxidized::NotSupported < OxidizedError; end
+ class Oxidized::NodeNotFound < OxidizedError; end
class Nodes < Array
attr_accessor :source
alias :put :unshift