lib/ellen.rb in ellen-0.1.0 vs lib/ellen.rb in ellen-0.1.1

- old
+ new

@@ -1,5 +1,6 @@ +require "active_support/concern" require "active_support/core_ext/module/delegation" require "active_support/core_ext/string/inflections" require "bundler" require "dotenv" require "mem" @@ -16,32 +17,33 @@ def die(message) logger.error("Error: #{message}") exit(1) end - def adapters - {} - end - memoize :adapters - def handlers [] end memoize :handlers + + def actions + handlers.map(&:actions).flatten.sort_by(&:all?) + end end end require "ellen/action" require "ellen/adapter_builder" +require "ellen/env" +require "ellen/env/missing_required_key_error" +require "ellen/env/validatable" require "ellen/adapters/base" require "ellen/adapters/shell" require "ellen/brains/base" require "ellen/brains/null" require "ellen/command_builder" require "ellen/commands/base" require "ellen/commands/generate" require "ellen/commands/run" -require "ellen/env" require "ellen/handlers/base" require "ellen/handlers/help" require "ellen/handlers/ping" require "ellen/logger" require "ellen/message"