Sha256: bf15c4fdf0cf9df83b876a3ad0d548e6176ab7a8c70403e8f42ffc33dd057bb1
Contents?: true
Size: 1.52 KB
Versions: 2
Compression:
Stored size: 1.52 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 ||= begin $stdout.sync = true logger = Ruboty::Logger.new($stdout) logger.level = ENV["LOG_LEVEL"] ? ENV["LOG_LEVEL"].to_i : Logger::INFO logger end end def die(message) logger.error("Error: #{message}") exit(1) end def handlers [] end memoize :handlers def actions handlers.map(&:actions).flatten.sort_by { |action| action.all? ? 1 : 0 } 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/help" 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruboty-1.1.9 | lib/ruboty.rb |
ruboty-1.1.8 | lib/ruboty.rb |