Module: Del
- Defined in:
- lib/del.rb,
lib/del/cli.rb,
lib/del/tron.rb,
lib/del/user.rb,
lib/del/robot.rb,
lib/del/source.rb,
lib/del/message.rb,
lib/del/version.rb,
lib/del/repository.rb,
lib/del/send_message.rb,
lib/del/configuration.rb,
lib/del/shell_command.rb,
lib/del/socket_server.rb,
lib/del/default_router.rb,
lib/del/socket_message.rb,
lib/del/xmpp_connection.rb,
lib/del/socket_connection.rb
Overview
Del the funky robosapien.
Defined Under Namespace
Classes: CLI, Configuration, DefaultRouter, Message, Repository, Robot, SendMessage, ShellCommand, SocketConnection, SocketMessage, SocketServer, Source, Tron, User, XMPPConnection
Constant Summary
collapse
- VERSION =
'0.1.19'
Class Method Summary
collapse
Class Method Details
.bot ⇒ Object
54
55
56
|
# File 'lib/del.rb', line 54
def self.bot
@bot ||= Robot.new(configuration: configuration)
end
|
.configuration ⇒ Object
46
47
48
|
# File 'lib/del.rb', line 46
def self.configuration
@configuration ||= Configuration.new({})
end
|
42
43
44
|
# File 'lib/del.rb', line 42
def self.configure
yield configuration
end
|
.logger ⇒ Object
50
51
52
|
# File 'lib/del.rb', line 50
def self.logger
@logger ||= configuration.logger
end
|
.start(settings) ⇒ Object
33
34
35
36
37
38
39
40
|
# File 'lib/del.rb', line 33
def self.start(settings)
@configuration = Configuration.new(settings)
@configuration.router.register(/.*/) do |message|
logger.debug(message.to_s)
end
@configuration.load(settings[:startup_file])
bot.get_funky!(start_server: settings[:start_server])
end
|