Sha256: 2f985450bd97fa1a7c4e8920c771359d1b72aeeb246bdd3abeb00fa0ca4a1ee5

Contents?: true

Size: 857 Bytes

Versions: 6

Compression:

Stored size: 857 Bytes

Contents

# Load our dependencies
require 'rubygems' unless defined?(Gem)
require 'bundler/setup'

Bundler.require(:utils, :db)
Bundler.require(
    :sidekiq,
<% if @mandrill -%>
    :mailer,
<% end -%>
<% if @es -%>
    :elastic_search,
<% end -%>
)

# Defines our constants
RACK_ENV = Sidekiq.options[:environment] || ENV['RACK_ENV'] || :development
APP_ROOT = File.expand_path('../..', __FILE__) unless defined?(APP_ROOT)
Bundler.require(RACK_ENV)

require 'warden'

require_relative 'settings'

ApplicationSettings.source File.expand_path('config/application.yml', APP_ROOT)
ApplicationSettings.root = APP_ROOT

# Load initializers
Dir[ApplicationSettings.root('config/initializers/*.rb')].each {|file_name| require file_name}

%w{lib jobs uploaders models search_indexes}.each do |path|
  Dir[ApplicationSettings.root("#{path}/**/*.rb")].each {|f| require f}
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
grape-gen-0.0.6 template/config/boot_sidekiq.rb.tt
grape-gen-0.0.5 template/config/boot_sidekiq.rb.tt
grape-gen-0.0.4 template/config/boot_sidekiq.rb.tt
grape-gen-0.0.3 template/config/boot_sidekiq.rb.tt
grape-gen-0.0.2 template/config/boot_sidekiq.rb.tt
grape-gen-0.0.1 template/config/boot_sidekiq.rb.tt