Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
89fe4de
commit 42c283f
Showing
1 changed file
with
16 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,16 @@ | ||
#!/usr/bin/env ruby | ||
|
||
gem_dir = File.expand_path("..",File.dirname(__FILE__)) | ||
$LOAD_PATH.unshift gem_dir# Look in gem directory for resources first. | ||
exec_type = ARGV[0] | ||
|
||
if exec_type == 'rake' then | ||
require 'rake' | ||
require 'pp' | ||
pwd=Dir.pwd | ||
Dir.chdir(gem_dir) # We'll load rakefile from the gem's dir. | ||
Rake.application.init | ||
Rake.application.load_rakefile | ||
Dir.chdir(pwd) # Revert to original pwd for any path args passed to task. | ||
Rake.application.invoke_task(ARGV[1]) | ||
end |