module DashingResque

Constants

VERSION

Public Class Methods

init() click to toggle source
# File lib/dashing_resque.rb, line 16
def init
  config = parse_config
  Resque.redis = config['redis_url']
  Sinatra::Application.settings.sprockets.append_path(File.expand_path(File.dirname(__FILE__)))
end

Private Class Methods

parse_config() click to toggle source
# File lib/dashing_resque.rb, line 24
def parse_config
  YAML.load_file(File.join(Sinatra::Application.settings.root, *%w(config resque.yml)))[ENV['RACK_ENV']]
end