Module: Culerity

### Home Classes Methods

### In Files

- lib/culerity/persistent_delivery.rb
- lib/culerity/remote_object_proxy.rb
- lib/culerity/remote_browser_proxy.rb
- lib/culerity/celerity_server.rb
- lib/culerity.rb

### Namespace

- MODULE Culerity::PersistentDelivery
- MODULE Culerity::ServerCommands
- CLASS Culerity::CelerityServer
- CLASS Culerity::CulerityException
- CLASS Culerity::RemoteBrowserProxy
- CLASS Culerity::RemoteObjectProxy

### Methods

- ::run_rails
- ::run_server

### Class/Module Index

Quicksearch

- Culerity
- Culerity::CelerityServer
- Culerity::CulerityException
- Culerity::PersistentDelivery
- Culerity::RemoteBrowserProxy
- Culerity::RemoteObjectProxy
- Culerity::ServerCommands
- Object

No matching classes.

# Culerity

### Public Class Methods

run_rails(options = {}) click to toggle source

    # File lib/culerity.rb, line 31
    def self.run_rails(options = {})
      if defined?(Rails) && !File.exists?("tmp/culerity_rails_server.pid")
        puts "WARNING: Speed up execution by running 'rake culerity:rails:start'"
        port        = options[:port] || 3001
        environment = options[:environment] || 'culerity'
        rails_server = fork do
          $stdin.reopen "/dev/null"
          $stdout.reopen "/dev/null"
          $stderr.reopen "/dev/null"
          Dir.chdir(Rails.root) do
            exec "script/server -e #{environment} -p #{port}"
          end
        end
        sleep 5
        rails_server
      end
    end

run_server() click to toggle source

    # File lib/culerity.rb, line 27
    def self.run_server
      IO.popen(File.dirname(__FILE__) + "/../bin/run_celerity_server.rb", 'r+').extend(ServerCommands)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.