Class: Anyt::RemoteControl::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/anyt/remote_control.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.connect(port) ⇒ Object



22
23
24
25
26
# File 'lib/anyt/remote_control.rb', line 22

def self.connect(port)
  DRb.start_service

  DRbObject.new_with_uri("druby://localhost:#{port}")
end

Instance Method Details

#restart_action_cableObject



28
29
30
# File 'lib/anyt/remote_control.rb', line 28

def restart_action_cable
  ActionCable.server.restart
end