diff options
Diffstat (limited to 'lib/oxidized/node.rb')
-rw-r--r-- | lib/oxidized/node.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/oxidized/node.rb b/lib/oxidized/node.rb index de04c98..35a5948 100644 --- a/lib/oxidized/node.rb +++ b/lib/oxidized/node.rb @@ -4,7 +4,7 @@ module Oxidized class ModelNotFound < StandardError; end class Node attr_reader :name, :ip, :model, :input, :output, :group, :auth, :prompt - attr_accessor :last, :running + attr_accessor :last, :running, :user, :msg, :from alias :running? :running def initialize opt @name = opt[:name] @@ -47,6 +47,10 @@ module Oxidized h end + def reset + @user = @msg = @from = nil + end + private def resolve_prompt opt |