my-boxen/config/basic.rb

28 lines
646 B
Ruby
Raw Normal View History

2012-10-02 15:16:25 -04:00
# 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
2012-10-02 16:45:23 -04:00
# Pull in Boxen itself.
require "boxen"