Sha256: a34717ad3609f888134c1464ea153bf8d4818fc5fbf1f66fd0461794c81e4de6

Contents?: true

Size: 1.22 KB

Versions: 6

Compression:

Stored size: 1.22 KB

Contents

require "active_support/concern"
require "active_support/core_ext/module/delegation"
require "active_support/core_ext/string/inflections"
require "bundler"
require "dotenv"
require "mem"
require "slop"

module Ellen
  class << self
    include Mem

    def logger
      @logger ||= Ellen::Logger.new($stdout)
    end

    def die(message)
      logger.error("Error: #{message}")
      exit(1)
    end

    def handlers
      []
    end
    memoize :handlers

    def actions
      handlers.map(&:actions).flatten.sort_by(&:all?)
    end
  end
end

require "ellen/action"
require "ellen/actions/base"
require "ellen/actions/help"
require "ellen/actions/ping"
require "ellen/adapter_builder"
require "ellen/env"
require "ellen/env/missing_required_key_error"
require "ellen/env/validatable"
require "ellen/env/validation_error"
require "ellen/adapters/base"
require "ellen/adapters/shell"
require "ellen/brains/base"
require "ellen/brains/memory"
require "ellen/command_builder"
require "ellen/commands/base"
require "ellen/commands/generate"
require "ellen/commands/run"
require "ellen/handlers/base"
require "ellen/handlers/help"
require "ellen/handlers/ping"
require "ellen/logger"
require "ellen/message"
require "ellen/robot"
require "ellen/version"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ellen-0.2.5 lib/ellen.rb
ellen-0.2.4 lib/ellen.rb
ellen-0.2.3 lib/ellen.rb
ellen-0.2.2 lib/ellen.rb
ellen-0.2.1 lib/ellen.rb
ellen-0.2.0 lib/ellen.rb