Sha256: 0158e6732e48eac671d5b329fba36b251b32980e8b4b3db5e85cb6c3c5c038ed

Contents?: true

Size: 696 Bytes

Versions: 111

Compression:

Stored size: 696 Bytes

Contents

module Picky

  # This is very optional.
  # Only load if the user wants it.
  #
  module Interfaces

    module LiveParameters

      # This is an interface that provides the user of
      # Picky with the possibility to change parameters
      # while the Application is running.
      #
      class Unicorn < MasterChild

        def worker_pids
          Unicorn::HttpServer::WORKERS.keys
        end

        def remove_worker wpid
          worker = Unicorn::HttpServer::WORKERS.delete(wpid) and worker.tmp.close rescue nil
        end

      end

    end

    # Aka.
    #
    # TODO
    #
    # remove_const :Unicorn if defined? Unicorn
    # Unicorn = LiveParameters::Unicorn

  end

end

Version data entries

111 entries across 111 versions & 1 rubygems

Version Path
picky-4.15.0 lib/picky/interfaces/live_parameters/unicorn.rb
picky-4.14.0 lib/picky/interfaces/live_parameters/unicorn.rb
picky-4.13.1 lib/picky/interfaces/live_parameters/unicorn.rb
picky-4.13.0 lib/picky/interfaces/live_parameters/unicorn.rb
picky-4.12.13 lib/picky/interfaces/live_parameters/unicorn.rb
picky-4.12.12 lib/picky/interfaces/live_parameters/unicorn.rb
picky-4.12.11 lib/picky/interfaces/live_parameters/unicorn.rb
picky-4.12.10 lib/picky/interfaces/live_parameters/unicorn.rb
picky-4.12.8 lib/picky/interfaces/live_parameters/unicorn.rb
picky-4.12.7 lib/picky/interfaces/live_parameters/unicorn.rb
picky-4.12.6 lib/picky/interfaces/live_parameters/unicorn.rb
picky-4.12.5 lib/picky/interfaces/live_parameters/unicorn.rb
picky-4.12.4 lib/picky/interfaces/live_parameters/unicorn.rb
picky-4.12.3 lib/picky/interfaces/live_parameters/unicorn.rb
picky-4.12.2 lib/picky/interfaces/live_parameters/unicorn.rb
picky-4.12.1 lib/picky/interfaces/live_parameters/unicorn.rb
picky-4.12.0 lib/picky/interfaces/live_parameters/unicorn.rb
picky-4.11.3 lib/picky/interfaces/live_parameters/unicorn.rb
picky-4.11.2 lib/picky/interfaces/live_parameters/unicorn.rb
picky-4.11.1 lib/picky/interfaces/live_parameters/unicorn.rb