Sha256: 34668dd223216d33c71bd0494223f60a37e2d9d7aa20b7e0d7d32798a3b6ddcd
Contents?: true
Size: 560 Bytes
Versions: 1
Compression:
Stored size: 560 Bytes
Contents
require "nerve" require "nerve/easy" module Doorkeepr module Rails module Nerve class << self attr_accessor :nerve, :thread def publish ::Rails.logger.debug "start announce service" Rails.announce Entrance.new.service if Doorkeepr.config.to_h[:entrance] nerve = ::Nerve::Nerve.new Rails.config.to_nerve at_exit do thread.kill ::Rails.logger.debug "Nerve removed" end thread = Thread.new{ nerve.run } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
doorkeepr-rails-0.1.4 | lib/doorkeepr/rails/nerve.rb |