Packaging system for Ruby similar to JAR in Java.
Install Casket in traditional way
$ gem install casket
Install Cascet from GitHub repository
$ git clone git://github.com/placek/casket.git $ cd casket $ rake build $ gem install ./pkg/cascet-*.gem
To make your application self-executive create rake task to initialize application process. The task should be bind to default task. For example:
require 'hello_world.rb' task :launch_application do # create task HelloWorld.run # initiate application end task :default => :launch_application # bind task to default one
For more examples please check github.com/placek/casket/tree/master/examples/.
To create Casket package simply go to your application directory and type:
$ casket --build
Then you should get an package with extension *.casket.
Tu run Casket project type:
$ casket <path to casket package>
If you don’t want to check dependences type:
$ casket --no-bundle <path to casket package>
Copyright © 2010 Paweł Placzyński. See LICENSE for details.