Spike config/basic
This commit is contained in:
parent
ca227f7c4f
commit
9554e58b46
3 changed files with 28 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
/.bundle
|
/.bundle
|
||||||
/bin
|
/bin
|
||||||
|
/config/local.rb
|
||||||
/vendor/cache
|
/vendor/cache
|
||||||
|
|
23
config/basic.rb
Normal file
23
config/basic.rb
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# 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 + "../.."
|
||||||
|
|
||||||
|
# Load local config if it exists.
|
||||||
|
|
||||||
|
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
|
|
@ -49,3 +49,7 @@ end
|
||||||
|
|
||||||
strap = %w(script/bootstrap --deployment --local --without development:test)
|
strap = %w(script/bootstrap --deployment --local --without development:test)
|
||||||
abort "Can't bootstrap, dependencies are outdated." unless system *strap
|
abort "Can't bootstrap, dependencies are outdated." unless system *strap
|
||||||
|
|
||||||
|
# Set up our local configuration, deps, and load path.
|
||||||
|
|
||||||
|
load "config/basic.rb"
|
||||||
|
|
Loading…
Reference in a new issue