Class: Switchboard::Commands::Unregister
- Inherits:
-
Switchboard::Command
- Object
- Switchboard::Command
- Switchboard::Commands::Unregister
- Defined in:
- lib/switchboard/commands/unregister.rb
Class Method Summary collapse
Methods inherited from Switchboard::Command
description, help, options, to_command, to_command_name
Class Method Details
.run! ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/switchboard/commands/unregister.rb', line 6 def self.run! switchboard = Switchboard::Client.new do begin client.remove_registration rescue Jabber::ServerError => e puts "Could not unregister #{settings["jid"]}: #{e}" shutdown(false) exit 1 end end switchboard.run! end |