Module: Ellen
- Extended by:
- Mem
- Defined in:
- lib/ellen/adapters/base.rb,
lib/ellen.rb,
lib/ellen/env.rb,
lib/ellen/robot.rb,
lib/ellen/action.rb,
lib/ellen/logger.rb,
lib/ellen/message.rb,
lib/ellen/version.rb,
lib/ellen/brains/base.rb,
lib/ellen/actions/base.rb,
lib/ellen/actions/help.rb,
lib/ellen/actions/ping.rb,
lib/ellen/commands/run.rb,
lib/ellen/brains/memory.rb,
lib/ellen/commands/base.rb,
lib/ellen/handlers/base.rb,
lib/ellen/handlers/help.rb,
lib/ellen/handlers/ping.rb,
lib/ellen/actions/whoami.rb,
lib/ellen/adapters/shell.rb,
lib/ellen/adapter_builder.rb,
lib/ellen/command_builder.rb,
lib/ellen/env/validatable.rb,
lib/ellen/handlers/whoami.rb,
lib/ellen/commands/generate.rb,
lib/ellen/env/validation_error.rb,
lib/ellen/env/missing_required_key_error.rb
Overview
Abstract class to be inherited from adapter class.
Defined Under Namespace
Modules: Actions, Adapters, Brains, Commands, Handlers
Classes: Action, AdapterBuilder, CommandBuilder, Env, Logger, Message, Robot
Constant Summary
collapse
- VERSION =
"0.2.8"
Class Method Summary
collapse
Class Method Details
.actions ⇒ Object
27
28
29
|
# File 'lib/ellen.rb', line 27
def actions
handlers.map(&:actions).flatten.sort_by(&:all?)
end
|
.die(message) ⇒ Object
17
18
19
20
|
# File 'lib/ellen.rb', line 17
def die(message)
logger.error("Error: #{message}")
exit(1)
end
|
.handlers ⇒ Object
22
23
24
|
# File 'lib/ellen.rb', line 22
def handlers
[]
end
|
.logger ⇒ Object
13
14
15
|
# File 'lib/ellen.rb', line 13
def logger
@logger ||= Ellen::Logger.new($stdout)
end
|