Simple Rucola Console Script

I made a small script to help in debugging rucola projects. It will start an interactive irb session and boot your rucola app in the test environment.I saved it in ‘script/console’. You can use it to experiment with your classes.

1
2
3
4
5
6
7
#!/usr/bin/env ruby
ENV['RUBYCOCOA_ROOT'] = File.join(File.dirname(__FILE__), '..')
ENV['RUBYCOCOA_ENV'] = 'test'
libs = "-r rubygems"
libs << " -r rucola"
libs << " -r #{ENV['RUBYCOCOA_ROOT']}/config/boot"
exec "irb #{libs}"

Comments