Sha256: e976765fc41c9830b3d948c695b8b0095042dbd35de99ac66660e09650ed582a

Contents?: true

Size: 719 Bytes

Versions: 7

Compression:

Stored size: 719 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)

Encoding.default_external = Encoding::UTF_8 if defined?(Encoding)

# 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

7 entries across 7 versions & 1 rubygems

Version Path
spontaneous-0.2.0.alpha6 lib/spontaneous/generators/site/config/boot.rb
spontaneous-0.2.0.alpha5 lib/spontaneous/generators/site/config/boot.rb
spontaneous-0.2.0.alpha4 lib/spontaneous/generators/site/config/boot.rb
spontaneous-0.2.0.alpha3 lib/spontaneous/generators/site/config/boot.rb
spontaneous-0.2.0.alpha2 lib/spontaneous/generators/site/config/boot.rb
spontaneous-0.2.0.alpha1 lib/spontaneous/generators/site/config/boot.rb
spontaneous-0.1.0.alpha1 lib/spontaneous/generators/site/config/boot.rb