Sha256: 69079845a2075ece4e92e462f93a514f1281b31fad37a39ce146ccd3ce498088
Contents?: true
Size: 1.53 KB
Versions: 2
Compression:
Stored size: 1.53 KB
Contents
$:.unshift File.expand_path(File.join(File.dirname(__FILE__), "..", "lib")) require 'rubygems' require 'bundler/setup' require 'logger' # Load the environment file based on Environment. Default to development ENV['ROBOT_ENVIRONMENT'] ||= 'development' require File.expand_path(File.join(File.dirname(__FILE__), 'environments', ENV['ROBOT_ENVIRONMENT'])) ENV['ROBOT_LOG'] ||= 'stdout' ENV['ROBOT_LOG_LEVEL'] ||= 'info' ROBOT_LOG = Logger.new(ENV['ROBOT_LOG'].downcase == 'stdout' ? STDOUT : ENV['ROBOT_LOG']) ROBOT_LOG.level = Logger::SEV_LABEL.index(ENV['ROBOT_LOG_LEVEL'].upcase) || Logger::INFO # if running under debugging and using stdout, then run unbuffered STDOUT.sync = true if ENV['ROBOT_LOG_LEVEL'].downcase == 'debug' and ENV['ROBOT_LOG'].downcase == 'stdout' # @see http://rubydoc.info/gems/redis/3.0.7/file/README.md # @see https://github.com/resque/resque # # Set the redis connection. Takes any of: # String - a redis url string (e.g., 'redis://host:port') # String - 'hostname:port[:db][/namespace]' # Redis - a redis connection that will be namespaced :resque # Redis::Namespace - a namespaced redis connection that will be used as-is # Redis::Distributed - a distributed redis connection that will be used as-is # Hash - a redis connection hash (e.g. {:host => 'localhost', :port => 6379, :db => 0}) require 'resque' REDIS_URL ||= "localhost:6379/resque:#{ENV['ROBOT_ENVIRONMENT']}" Resque.redis = REDIS_URL require 'active_support/core_ext' # camelcase require 'druid-tools' require 'robot-controller' require 'robots'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
robot-controller-0.2.1 | example/config/boot.rb |
robot-controller-0.2.0 | example/config/boot.rb |