allow monkey-patching of Blimpy by the project (mainly to add more commands)

This commit is contained in:
Kohsuke Kawaguchi 2012-12-19 10:27:18 -08:00
parent 462416616b
commit 85b2ceb8f1
1 changed files with 4 additions and 0 deletions

View File

@ -17,5 +17,9 @@ rescue LoadError
require 'blimpy/cli'
end
# allow monkey-patching of Blimpy by the project (mainly to add more commands)
blimprc = File.join(Dir.pwd,"Blimprc")
Blimpy.load_file File.open(blimprc).read if File.exists? blimprc
Blimpy::CLI.start
exit 0