Scaffold your custom launcher. Launch from your shell script ( and also Ruby script ) collection.
rake install
gem sources -a http://gemcutter.org/ gem install shlauncher
-
scaffold launcher ( by ‘tractor’ command )
-
collect scripts in script/ directory and list up as task
-
exec all tasks in some scope
-
generate gem
-
On Windows, ONLY RUBY SCRIPTS can be executed.
Scaffold your launcher.
$ tractor LAUNCHER_NAME
Put your script into script/ directory and make executable.
$ cd LAUNCHER_NAME $ ./bin/LAUNCHER_NAME $ echo '# script sample' > script/sample $ chmod a+x script/sample
Run your launcher.
$ ./bin/LAUNCHER_NAME LAUNCHER_NAME sample # script sample
NOTE: Or type ‘ruby binLAUNCHER_NAME’ if you use Windows.
Generate gem from your launcher.
$ rake gemspec $ rake gem $ ls pkg LAUNCHER_NAME-0.0.1.gem
‘Cutagem’ inspires and be helpful to this product.
Thank you, cho45 and genki !
- Author
-
wtnabe <wtnabe@gmail.com>
- Copyright
-
Copyright © 2009 wtnabe
- License
-
Two-claused BSD