Commit 9554e58b46b480c6a2dcc4e57c25773455487251

Authored by John Barnette
1 parent ca227f7c4f

Spike config/basic

Showing 3 changed files with 28 additions and 0 deletions Side-by-side Diff

1 1 /.bundle
2 2 /bin
  3 +/config/local.rb
3 4 /vendor/cache
  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
... ... @@ -49,4 +49,8 @@
49 49  
50 50 strap = %w(script/bootstrap --deployment --local --without development:test)
51 51 abort "Can't bootstrap, dependencies are outdated." unless system *strap
  52 +
  53 +# Set up our local configuration, deps, and load path.
  54 +
  55 +load "config/basic.rb"