[BioRuby-cvs] bioruby/lib/bio/shell irb.rb,1.1,1.2
Katayama Toshiaki
k at dev.open-bio.org
Wed Mar 14 19:54:53 UTC 2007
Update of /home/repository/bioruby/bioruby/lib/bio/shell
In directory dev.open-bio.org:/tmp/cvs-serv23069/shell
Modified Files:
irb.rb
Log Message:
* activate rails environment (models) if rails is installed in the
current project. this means you can use 'bioruby' command as a
better './scriopt/console' shell having persistent history and object
serialization.
Index: irb.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/shell/irb.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** irb.rb 24 Dec 2006 08:32:08 -0000 1.1
--- irb.rb 14 Mar 2007 19:54:51 -0000 1.2
***************
*** 48,51 ****
--- 48,57 ----
return line
end
+
+ if File.exists?("./config/boot.rb")
+ require "./config/boot"
+ require "./config/environment"
+ #require 'commands/console'
+ end
end
More information about the bioruby-cvs
mailing list