1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-17 15:45:56 -05:00

Add binary

This commit is contained in:
Patrick Marsceill 2017-06-09 10:15:15 -04:00
parent 89fe4de7b5
commit 42c283fb3b
No known key found for this signature in database
GPG Key ID: AEAF30C14952BCC5

16
bin/just-the-docs Executable file
View File

@ -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