Sha256: 4dbd1c1e2fa4203bcca99fb1ceea0e72d6cc43a64fa890c6ff2f2f88741b4d33

Contents?: true

Size: 679 Bytes

Versions: 2

Compression:

Stored size: 679 Bytes

Contents

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

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.new
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cellect-server-2.0.0.beta3 lib/cellect/server.rb
cellect-server-2.0.0.beta2 lib/cellect/server.rb