Search This Blog

Saturday, January 7, 2012

Start working with Celerity


How do i start
i downloaded JRUBY from  http://jruby.org/download and install it.

i opened a  command prompt - to install celerity.

D:\MyStuff\jruby\jruby-1.6.5.1\bin>jruby -S gem install celerity
Fetching: celerity-0.9.1.gem (100%)
Successfully installed celerity-0.9.1
1 gem installed

i opened the https://github.com/jarib/celerity/wiki/getting-started
i copied the example/first script into a file d:\temp\test.rb

back to the command prompt
D:\MyStuff\jruby\jruby-1.6.5.1\bin> testrb.bat D:\Temp\test.rb

looks worked to me

the second option is to run the script we mention , line by line from the command prompt ( for understanding).
in the command prompt - type irb
D:\MyStuff\jruby\jruby-1.6.5.1\bin> irb
puts "Hello world!"


now you can put each script line - and see the result of each command.


its just a starter , i am still investigating ...
use the command line tutorial ->   http://ruby.about.com/od/tutorials/a/commandline.htm

Yaniv Tzanany

No comments: