Class: Circus::Agents::RemoteDBusConnection

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

Instance Method Summary collapse

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_connectionObject



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