Sha256: 17ae05f013e4b09e6fb10719916345b7cf45b06eff34e80935d9ec6dcfcaae45
Contents?: true
Size: 755 Bytes
Versions: 1
Compression:
Stored size: 755 Bytes
Contents
require 'zeus/version' require 'zeus/ui' require 'zeus/plan' require 'zeus/server' require 'zeus/client' require 'zeus/error_printer' require 'zeus/cli' module Zeus SOCKET_NAME = '.zeus.sock' 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 def self.thread_with_backtrace_on_error(&b) Thread.new { begin b.call rescue => e ErrorPrinter.new(e).write_to($stdout) end } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zeus-0.4.6 | lib/zeus.rb |