Sha256: 549dd0f41e02db987f081c8204c6c35b891d832e5b30a14674338d0b0b72dcf7

Contents?: true

Size: 625 Bytes

Versions: 6

Compression:

Stored size: 625 Bytes

Contents

module Zeus
  SOCKET_NAME = '.zeus.sock'

  autoload :UI,      'zeus/ui'
  autoload :CLI,     'zeus/cli'
  autoload :DSL,     'zeus/dsl'
  autoload :Server,  'zeus/server'
  autoload :Client,  'zeus/client'
  autoload :VERSION, 'zeus/version'

  class ZeusError < StandardError
    def self.status_code(code)
      define_method(:status_code) { code }
    end
  end

  def self.ui
    @ui ||= UI.new
  end

  def self.ui=(ui)
    @ui = ui
  end

  def self.after_fork(&b)
    @after_fork ||= []
    @after_fork << b
  end

  def self.run_after_fork!
    @after_fork.map(&:call) if @after_fork
    @after_fork = []
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
zeus-0.4.5 lib/zeus.rb
zeus-0.4.4 lib/zeus.rb
zeus-0.4.1 lib/zeus.rb
zeus-0.4.0 lib/zeus.rb
zeus-0.3.1 lib/zeus.rb
zeus-0.3.0 lib/zeus.rb