Commit 9554e58b46b480c6a2dcc4e57c25773455487251
1 parent
ca227f7c4f
Spike config/basic
Showing 3 changed files with 28 additions and 0 deletions Side-by-side Diff
.gitignore
config/basic.rb
1 | +# Set up the execution environment. Load this file before trying to do | |
2 | +# anything else. This file assumes that the repo's been bootstrapped. | |
3 | + | |
4 | +require "pathname" | |
5 | + | |
6 | +# Make sure we're in the repo's root directory. | |
7 | + | |
8 | +Dir.chdir Pathname.new(__FILE__).realpath + "../.." | |
9 | + | |
10 | +# Load local config if it exists. | |
11 | + | |
12 | +local = File.expand_path "../local.rb", __FILE__ | |
13 | +load local if File.file? local | |
14 | + | |
15 | +# Add local deps to the load path. | |
16 | + | |
17 | +require "rubygems" | |
18 | +require "bundler/setup" | |
19 | + | |
20 | +# Add local lib to the front of the load path if it exists. | |
21 | + | |
22 | +lib = File.expand_path "../../lib", __FILE__ | |
23 | +$:.unshift lib if File.directory? lib |
script/boxen