Sha256: aaacc91aed52dde57ccd47dc30956b601e82d0416f66738b1b8ef55dcf6be38a

Contents?: true

Size: 779 Bytes

Versions: 1

Compression:

Stored size: 779 Bytes

Contents

require "kryten/version"
require "kryten/environment"

require "kryten/runner"
require "kryten/lawger"
require "kryten/helper"

require "kryten/weaver"
require "kryten/daemon"
require "kryten/remote"

# TASK
module Kryten::Task
  include Kryten::Runner
  include Kryten::Lawger
  include Kryten::Helper
end

module Kryten::ThreadedTask
  include Kryten::Task
  include Kryten::Weaver
end

module Kryten::BackgroundTask
  include Kryten::Task
  include Kryten::Daemon
end


# JOB
class Kryten::Job
  include Kryten::BackgroundTask
end

class Kryten::ThreadedJob
  include Kryten::ThreadedTask
end

class Kryten::ThreadedVisor
  extend Kryten::ThreadedTask
  def self.setup
    Signal.trap("INT", proc { stop_work })
    Signal.trap("TERM", proc { stop_work })
    super
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kryten-0.3.3 lib/kryten.rb