Sha256: 2bb273f8795d8027f69355ed4be540962341d1400aa8afca987ac847595e32b6

Contents?: true

Size: 913 Bytes

Versions: 1

Compression:

Stored size: 913 Bytes

Contents

module Adhearsion
  module Drb

    ##
    # Adhearsion Plugin definition that defines the DRb configuration options
    # and includes a hook to start the DRb service in Adhearsion initialization process
    class Plugin < Adhearsion::Plugin
      extend ActiveSupport::Autoload

      autoload :Service

      # Default configuration
      config :adhearsion_drb do
        host "localhost", :desc => "DRb service host"
        port 9050       , :desc => "DRb service port"

        desc "Access Control List configuration for the DRb service"
        acl {
          allow ["127.0.0.1"], :desc => "list of valid IP addresses to access DRb service"
          deny  []           , :desc => "list of invalid IP addresses to access DRb service"
        }
      end

      # Include the DRb service in plugins initialization process
      init :adhearsion_drb do
        Service.start
      end

    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adhearsion-drb-0.1.0 lib/adhearsion/drb/plugin.rb