Blame view

config/basic.rb 742 Bytes
9554e58b4   John Barnette   Spike config/basic
1
2
3
4
5
6
7
8
  # Set up the execution environment. Load this file before trying to do
  # anything else. This file assumes that the repo's been bootstrapped.
  
  require "pathname"
  
  # Make sure we're in the repo's root directory.
  
  Dir.chdir Pathname.new(__FILE__).realpath + "../.."
740af47bd   John Barnette   Make config exten...
9
10
11
12
13
14
  # Load custom config.
  
  load File.expand_path "../boxen.rb", __FILE__
  
  # Load local config if it exists. This file is ignored by Git, and can
  # be used for personal config.
9554e58b4   John Barnette   Spike config/basic
15
16
17
18
19
20
21
22
23
24
25
26
27
  
  local = File.expand_path "../local.rb", __FILE__
  load local if File.file? local
  
  # Add local deps to the load path.
  
  require "rubygems"
  require "bundler/setup"
  
  # Add local lib to the front of the load path if it exists.
  
  lib = File.expand_path "../../lib", __FILE__
  $:.unshift lib if File.directory? lib