[BioRuby-cvs] bioruby/lib/bio/shell core.rb,1.5,1.6

Katayama Toshiaki k at pub.open-bio.org
Sun Nov 6 13:30:07 EST 2005


Update of /home/repository/bioruby/bioruby/lib/bio/shell
In directory pub.open-bio.org:/tmp/cvs-serv14526/lib/bio/shell

Modified Files:
	core.rb 
Log Message:
* savedir is repeatedly asked until y or n is given


Index: core.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/shell/core.rb,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** core.rb	6 Nov 2005 01:36:11 -0000	1.5
--- core.rb	6 Nov 2005 18:30:04 -0000	1.6
***************
*** 134,141 ****
        dir = SAVEDIR
        if ! File.directory?(dir)
!         print "Save in \"#{dir}\" directory? [y/n]: "
!         answer = gets
!         if /^\s*n/.match(answer.downcase)
!           dir = USERDIR
          end
        end
--- 134,146 ----
        dir = SAVEDIR
        if ! File.directory?(dir)
!         loop do
!           print "Save in \"#{dir}\" directory? [y/n]: "
!           answer = gets
!           if /^\s*[Yy]/.match(answer)
!             break
!           elsif /^\s*[Nn]/.match(answer)
!             dir = USERDIR
!             break
!           end
          end
        end



More information about the bioruby-cvs mailing list