Commit 740af47bd3d53f6068796e802b5aabd13394f292
1 parent
cea2b22c9b
Make config extensible
Showing 2 changed files with 8 additions and 1 deletions Inline Diff
config/basic.rb
| # Set up the execution environment. Load this file before trying to do | 1 | 1 | # Set up the execution environment. Load this file before trying to do | |
| # anything else. This file assumes that the repo's been bootstrapped. | 2 | 2 | # anything else. This file assumes that the repo's been bootstrapped. | |
| 3 | 3 | |||
| require "pathname" | 4 | 4 | require "pathname" | |
| 5 | 5 | |||
| # Make sure we're in the repo's root directory. | 6 | 6 | # Make sure we're in the repo's root directory. | |
| 7 | 7 | |||
| Dir.chdir Pathname.new(__FILE__).realpath + "../.." | 8 | 8 | Dir.chdir Pathname.new(__FILE__).realpath + "../.." | |
| 9 | 9 | |||
| # Load local config if it exists. | 10 | 10 | # Load custom config. | |
| 11 | ||||
| 12 | load File.expand_path "../boxen.rb", __FILE__ | |||
| 13 | ||||
| 14 | # Load local config if it exists. This file is ignored by Git, and can | |||
| 15 | # be used for personal config. | |||
| 11 | 16 | |||
| local = File.expand_path "../local.rb", __FILE__ | 12 | 17 | local = File.expand_path "../local.rb", __FILE__ | |
| load local if File.file? local | 13 | 18 | load local if File.file? local | |
| 14 | 19 | |||
| # Add local deps to the load path. | 15 | 20 | # Add local deps to the load path. | |
| 16 | 21 | |||
| require "rubygems" | 17 | 22 | require "rubygems" |
config/boxen.rb
| File was created | 1 | # This file will be loaded by config/basic early in a Boxen run. Use | ||
| 2 | # it to provide any custom code or behavior your Boxen setup requires. |