Module: QLab
- Defined in:
- lib/qlab-ruby.rb,
lib/qlab-ruby/cue.rb,
lib/qlab-ruby/reply.rb,
lib/qlab-ruby/machine.rb,
lib/qlab-ruby/version.rb,
lib/qlab-ruby/commands.rb,
lib/qlab-ruby/cue_list.rb,
lib/qlab-ruby/workspace.rb,
lib/qlab-ruby/communicator.rb
Defined Under Namespace
Modules: Commands
Classes: Communicator, Cue, CueList, Machine, Reply, Workspace, WorkspaceConnectionError
Constant Summary
collapse
- VERSION =
"0.1.2"
Class Method Summary
collapse
Class Method Details
.connect(machine_address = 'localhost', port = 53000) ⇒ Object
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/qlab-ruby.rb', line 14
def connect machine_address='localhost', port=53000
begin
new_machine = Machine.new(machine_address, port)
rescue Errno::ECONNREFUSED
puts "Failed to connect to QLab machine at #{machine_address}:#{port}, please make sure your values are correct and QLab is running."
raise
end
if new_machine.connected?
new_machine.alwaysReply = 1
end
new_machine
end
|
.debug(msg) ⇒ Object
30
31
32
|
# File 'lib/qlab-ruby.rb', line 30
def debug msg
end
|