Sha256: 735661d9d94cea0f4677cc7e8dcffe266d61a77f225b8be26169b1cee7914c9a

Contents?: true

Size: 594 Bytes

Versions: 19

Compression:

Stored size: 594 Bytes

Contents

module Invoker
  # power is really a stupid pun on pow.
  module Power
    class Powerup
      def self.fork_and_start
        powerup = new()
        fork { powerup.run }
      end

      def run
        require "invoker/power/power"
        EM.epoll
        EM.run {
          trap("TERM") { stop }
          trap("INT") { stop }
          if Invoker.darwin?
            DNS.new.run(listen: DNS.server_ports)
          end
          Balancer.run
        }
      end

      def stop
        Invoker::Logger.puts "Terminating Proxy/Server"
        EventMachine.stop
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
itrg-invoker-1.6.1 lib/invoker/power/powerup.rb
itrg-invoker-1.6.0 lib/invoker/power/powerup.rb
invoker-1.5.8 lib/invoker/power/powerup.rb
invoker-1.5.7 lib/invoker/power/powerup.rb
invoker-1.5.6 lib/invoker/power/powerup.rb
invoker-1.5.5 lib/invoker/power/powerup.rb
invoker-1.5.4 lib/invoker/power/powerup.rb
invoker-1.5.3 lib/invoker/power/powerup.rb
meepo-1.5.2 lib/invoker/power/powerup.rb
invoker-1.5.1 lib/invoker/power/powerup.rb
invoker-1.4.1 lib/invoker/power/powerup.rb
invoker-1.4.0 lib/invoker/power/powerup.rb
invoker-1.3.2 lib/invoker/power/powerup.rb
invoker-1.3.1 lib/invoker/power/powerup.rb
invoker-1.3.0 lib/invoker/power/powerup.rb
invoker-1.2.0 lib/invoker/power/powerup.rb
invoker-1.2.0.pre2 lib/invoker/power/powerup.rb
invoker-1.2.0.pre1 lib/invoker/power/powerup.rb
invoker-1.2.0.pre lib/invoker/power/powerup.rb