Class: Circus::Agents::RemoteExternal

Inherits:
Object
  • Object
show all
Defined in:
lib/circus/agents/ssh_connection.rb

Instance Method Summary collapse

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

#authenticateObject



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

#nameObject



105
106
107
# File 'lib/circus/agents/ssh_connection.rb', line 105

def name
  'EXTERNAL'
end

#newObject

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