Sha256: 1498358b7614d583155dcee580dd9e00bdf66b5b6c3cca699bbbb6b93834d871

Contents?: true

Size: 1.31 KB

Versions: 3

Compression:

Stored size: 1.31 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 Ruboty
  class << self
    include Mem

    def logger
      @logger ||= Ruboty::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 "ruboty/action"
require "ruboty/actions/base"
require "ruboty/actions/help"
require "ruboty/actions/ping"
require "ruboty/actions/whoami"
require "ruboty/adapter_builder"
require "ruboty/env"
require "ruboty/env/missing_required_key_error"
require "ruboty/env/validatable"
require "ruboty/env/validation_error"
require "ruboty/adapters/base"
require "ruboty/adapters/shell"
require "ruboty/brains/base"
require "ruboty/brains/memory"
require "ruboty/command_builder"
require "ruboty/commands/base"
require "ruboty/commands/generate"
require "ruboty/commands/run"
require "ruboty/handlers/base"
require "ruboty/handlers/help"
require "ruboty/handlers/ping"
require "ruboty/handlers/whoami"
require "ruboty/logger"
require "ruboty/message"
require "ruboty/robot"
require "ruboty/version"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruboty-1.0.2 lib/ruboty.rb
ruboty-1.0.1 lib/ruboty.rb
ruboty-1.0.0 lib/ruboty.rb