Sha256: 54f6453f367aebb30533ca2522bd556ea92ec4f0120da817a321a2725c0adeb1

Contents?: true

Size: 619 Bytes

Versions: 3

Compression:

Stored size: 619 Bytes

Contents

# Defines our constants
PADRINO_ENV  = ENV["PADRINO_ENV"] ||= ENV["RACK_ENV"] ||= "development" unless defined?(PADRINO_ENV)
PADRINO_ROOT = File.dirname(__FILE__) + '/..' unless defined? PADRINO_ROOT

begin
  # Require the preresolved locked set of gems.
  require File.expand_path('../../.bundle/environment', __FILE__)
  require 'padrino'
rescue LoadError
  # Fallback on doing the resolve at runtime.
  require 'rubygems'
  require 'bundler'
  Bundler.setup
end

Bundler.require :default, PADRINO_ENV
puts "=> Located #{Padrino.bundle} Gemfile for #{Padrino.env} with #{Padrino.support.to_s.humanize}"

Padrino.load!

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
padrino-gen-0.7.7 lib/padrino-gen/generators/app/config/boot.rb
padrino-gen-0.7.6 lib/padrino-gen/generators/app/config/boot.rb
padrino-gen-0.7.5 lib/padrino-gen/generators/app/config/boot.rb