Sha256: 8bb8dc3c7d35fc94a25fc6bf6c37d0c7ffb03d13eb0fc9f0c7041a3ad8146e56

Contents?: true

Size: 675 Bytes

Versions: 1

Compression:

Stored size: 675 Bytes

Contents

require 'diff_set'
require 'cellect'
require 'celluloid/autostart'

module Cellect
  module Server
    require 'cellect/server/node_set'
    require 'cellect/server/adapters'
    require 'cellect/server/workflow'
    require 'cellect/server/grouped_workflow'
    require 'cellect/server/user'
    require 'cellect/server/api'
    
    class << self
      attr_accessor :node_set
    end
    
    # The server is ready when all workflows have finished loading
    def self.ready?
      Workflow.all.each do |workflow|
        return false unless workflow.ready?
      end
      
      true
    rescue
      false
    end
    
    Server.node_set = NodeSet.supervise
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cellect-server-0.1.3 lib/cellect/server.rb