[BioRuby-cvs] bioruby/lib/bio/shell/rails/app/models shell_connection.rb, NONE, 1.1

Katayama Toshiaki k at pub.open-bio.org
Mon Feb 27 11:16:24 UTC 2006


Update of /home/repository/bioruby/bioruby/lib/bio/shell/rails/app/models
In directory pub.open-bio.org:/tmp/cvs-serv2240/app/models

Added Files:
	shell_connection.rb 
Log Message:
* BioRuby shell on Rails kit
* main original files are - app/controllers/shell_controller.rb,
  app/models/shell_connection.rb, app/views/layouts/shell.rhtml,
  app/views/shell/show.rhtml, (app/views/shell/history.rhtml),
  (config/database.yml), public/images/icon.png, public/stylesheets/main.css,
  script/server


--- NEW FILE: shell_connection.rb ---
# Model object for rails
class ShellConnection

# include DRb::DRbObservable

  attr_reader :registry

  def puts_remote(str)
    STDOUT.puts(str)
  end

  def initialize
    @connected = false
    @registry = {}
  end

  def [] o_id
    @registry[o_id]
  end

  def []=(name, obj)
    @registry[name] = obj
  end

  def delete(name)
    @registry.delete(name)
  end

end





More information about the bioruby-cvs mailing list