Class: Circus::Agents::RemoteExternal
- Inherits:
-
Object
- Object
- Circus::Agents::RemoteExternal
- Defined in:
- lib/circus/agents/ssh_connection.rb
Instance Method Summary collapse
- #authenticate ⇒ Object
-
#initialize(uid) ⇒ RemoteExternal
constructor
A new instance of RemoteExternal.
- #name ⇒ Object
-
#new ⇒ Object
Make this look like a class that can be instantiated.
Constructor Details
#initialize(uid) ⇒ RemoteExternal
Returns a new instance of RemoteExternal.
96 97 98 |
# File 'lib/circus/agents/ssh_connection.rb', line 96 def initialize(uid) @uid = uid end |
Instance Method Details
#authenticate ⇒ Object
109 110 111 |
# File 'lib/circus/agents/ssh_connection.rb', line 109 def authenticate @uid.to_s.split(//).collect { |a| "%x" % a[0].ord }.join end |
#name ⇒ Object
105 106 107 |
# File 'lib/circus/agents/ssh_connection.rb', line 105 def name 'EXTERNAL' end |
#new ⇒ Object
Make this look like a class that can be instantiated
101 102 103 |
# File 'lib/circus/agents/ssh_connection.rb', line 101 def new self end |