Make config extensible

This commit is contained in:
John Barnette 2012-10-02 13:57:29 -07:00
parent cea2b22c9b
commit 740af47bd3
2 changed files with 8 additions and 1 deletions

View file

@ -7,7 +7,12 @@ require "pathname"
Dir.chdir Pathname.new(__FILE__).realpath + "../.." Dir.chdir Pathname.new(__FILE__).realpath + "../.."
# Load local config if it exists. # 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.
local = File.expand_path "../local.rb", __FILE__ local = File.expand_path "../local.rb", __FILE__
load local if File.file? local load local if File.file? local

2
config/boxen.rb Normal file
View file

@ -0,0 +1,2 @@
# This file will be loaded by config/basic early in a Boxen run. Use
# it to provide any custom code or behavior your Boxen setup requires.