From 740af47bd3d53f6068796e802b5aabd13394f292 Mon Sep 17 00:00:00 2001 From: John Barnette Date: Tue, 2 Oct 2012 13:57:29 -0700 Subject: [PATCH] Make config extensible --- config/basic.rb | 7 ++++++- config/boxen.rb | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 config/boxen.rb diff --git a/config/basic.rb b/config/basic.rb index c696bfb..e12bfaa 100644 --- a/config/basic.rb +++ b/config/basic.rb @@ -7,7 +7,12 @@ require "pathname" 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__ load local if File.file? local diff --git a/config/boxen.rb b/config/boxen.rb new file mode 100644 index 0000000..dd5460f --- /dev/null +++ b/config/boxen.rb @@ -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.