Sha256: c6987d0641750d3c52c98fd4fcf4662de4491338aa8eb2fbdf347aee51bd960f

Contents?: true

Size: 871 Bytes

Versions: 1

Compression:

Stored size: 871 Bytes

Contents

require 'redis'

class Lemondrop::Plugin < Adhearsion::Plugin
  extend ActiveSupport::Autoload

  autoload :Service, 'lemondrop/plugin/service'

  # Configure the connection information to your Redis instance.
  config :lemondrop do
    uri         ''         , :desc => 'URI to the Redis instance. Use this or specify each piece of connection information separately below.'
    username    ''         , :desc => 'valid database username'
    password    nil        , :desc => 'valid database password'
    host        'localhost', :desc => 'host where the database is running'
    port        6379       , :desc => 'port where the database is listening'
    socket      ''         , :desc => 'path to Unix socket where Redis is listening (Optional; to use, set host and port to nil)'
  end

  init :lemondrop do
    Service.start Adhearsion.config[:lemondrop]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lemondrop-0.1.2 lib/lemondrop/plugin.rb