class LibComponent::LibError
Public Class Methods
quit(status_,str_)
click to toggle source
Only quit component Only use this method if component cannot connect to server
# File lib/openplacos/libcomponent.rb, line 527 def self.quit(status_,str_) $stderr.puts str_ exit(status_) end
quit_server(status_, str_)
click to toggle source
Print an error message and make the server quit
# File lib/openplacos/libcomponent.rb, line 514 def self.quit_server(status_, str_) bus = DBus::ASessionBus.new server = bus.service("org.openplacos.server.internal") opos = server.object("/plugins") opos.introspect opos.default_iface = "org.openplacos.plugins" $stderr.puts str_ opos.exit(status_, str_) end