Class: Circus::Agents::RemoteDBusConnection
- Inherits:
-
DBus::Connection
- Object
- DBus::Connection
- Circus::Agents::RemoteDBusConnection
- Defined in:
- lib/circus/agents/ssh_connection.rb
Instance Method Summary collapse
- #init_connection ⇒ Object
-
#initialize(path, remote_uid) ⇒ RemoteDBusConnection
constructor
A new instance of RemoteDBusConnection.
Constructor Details
#initialize(path, remote_uid) ⇒ RemoteDBusConnection
Returns a new instance of RemoteDBusConnection.
79 80 81 82 83 84 85 86 |
# File 'lib/circus/agents/ssh_connection.rb', line 79 def initialize(path, remote_uid) super(path) @remote_uid = remote_uid connect send_hello end |
Instance Method Details
#init_connection ⇒ Object
88 89 90 91 92 |
# File 'lib/circus/agents/ssh_connection.rb', line 88 def init_connection @client = DBus::Client.new(@socket) @client.auth_list = [RemoteExternal.new(@remote_uid)] @client.authenticate end |