Sha256: 830c678bddeb34bacb07cfd13e4715d059f79bf298de7afa5f2f97337ef6f747

Contents?: true

Size: 610 Bytes

Versions: 4

Compression:

Stored size: 610 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__)
rescue LoadError
  # Fallback on doing the resolve at runtime.
  require 'rubygems'
  gem 'bundler', '0.9.7'
  require 'bundler'
  Bundler.setup(:default, PADRINO_ENV)
end

Bundler.require(:default, PADRINO_ENV)
puts "=> Located #{Padrino.bundle} Gemfile for #{Padrino.env}"

Padrino.load!

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
padrino-gen-0.9.3 lib/padrino-gen/generators/project/config/boot.rb
padrino-gen-0.9.2 lib/padrino-gen/generators/project/config/boot.rb
padrino-gen-0.9.1 lib/padrino-gen/generators/project/config/boot.rb
padrino-gen-0.9.0 lib/padrino-gen/generators/project/config/boot.rb