forked from ZopaPublic/bozo
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
created executable in bin dir and updated gemspec
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env ruby | ||
root_directory = File.expand_path(File.dirname(__FILE__)) | ||
ENV['BOZO_ROOT_DIR'] = root_directory | ||
$:.push root_directory | ||
|
||
# Take a copy of the arguments as rubygems or bundler modifies them | ||
args = ARGV.dup | ||
|
||
# Special argument to ease initial build | ||
if args[0] == '--install' | ||
system 'gem install --no-rdoc --no-ri bundler --pre' | ||
system 'bundle install --path build/bundler' | ||
args = args[1..-1] # discard special argument | ||
end | ||
|
||
require "bundler/setup" | ||
require "rainbow" | ||
require "bozo" | ||
|
||
# Invoke the command | ||
result = GLI.run(args) | ||
|
||
exit result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters