Commit c145285d269881d41cf38b07ded9df8d1d1b7204
1 parent
17f628feae
Always require Boxen in config/basic
Showing 1 changed file with 4 additions and 0 deletions Inline Diff
config/basic.rb
# Set up the execution environment. Load this file before trying to do | 1 | 1 | # Set up the execution environment. Load this file before trying to do | |
# anything else. This file assumes that the repo's been bootstrapped. | 2 | 2 | # anything else. This file assumes that the repo's been bootstrapped. | |
3 | 3 | |||
require "pathname" | 4 | 4 | require "pathname" | |
5 | 5 | |||
# Make sure we're in the repo's root directory. | 6 | 6 | # Make sure we're in the repo's root directory. | |
7 | 7 | |||
Dir.chdir Pathname.new(__FILE__).realpath + "../.." | 8 | 8 | Dir.chdir Pathname.new(__FILE__).realpath + "../.." | |
9 | 9 | |||
# Load local config if it exists. | 10 | 10 | # Load local config if it exists. | |
11 | 11 | |||
local = File.expand_path "../local.rb", __FILE__ | 12 | 12 | local = File.expand_path "../local.rb", __FILE__ | |
load local if File.file? local | 13 | 13 | load local if File.file? local | |
14 | 14 | |||
# Add local deps to the load path. | 15 | 15 | # Add local deps to the load path. | |
16 | 16 | |||
require "rubygems" | 17 | 17 | require "rubygems" | |
require "bundler/setup" | 18 | 18 | require "bundler/setup" |