Sha256: 215932d66004efdd52168382e4c7be8f803d234e4e629c56a3c985a535928930
Contents?: true
Size: 651 Bytes
Versions: 18
Compression:
Stored size: 651 Bytes
Contents
SPOT_ENV = (ENV["SPOT_ENV"] ||= ENV["RACK_ENV"] ||= "development").to_sym unless defined?(SPOT_ENV) SPOT_MODE = (ENV["SPOT_MODE"] ||= "back").to_sym unless defined?(SPOT_MODE) # Set up gems listed in the Gemfile. ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE']) Bundler.require(:default, SPOT_ENV, SPOT_MODE) # TODO: configuration of template engine # so, remove this require and move the template init into part of the ::load! method # using config settings to determine engine require 'cutaneous' Spontaneous.init(:environment => SPOT_ENV, :mode => SPOT_MODE)
Version data entries
18 entries across 18 versions & 1 rubygems