Sha256: 53ab86580ef98e812c38738f0cb0f11fb3e194d76e6a099260de560bac685bd7

Contents?: true

Size: 1.84 KB

Versions: 3

Compression:

Stored size: 1.84 KB

Contents

#
# Customize this configuration file according to your environment.
#
Weeter.configure do |conf|

  # To log to STDOUT, don't specify anything.
  # To log to a specific path:
  # conf.log_path = '/tmp/weeter.log'
  # To disable logging:
  # conf.log_path = false

  conf.twitter do |twitter|
    # For basic auth
    # twitter.basic_auth = {:username => 'johnny', :password => 'secret'}
    
    # Or, for oauth
    twitter.oauth = {:consumer_key => ENV['WEETER_TWITTER_CONSUMER_KEY'],
                     :consumer_secret => ENV['WEETER_TWITTER_CONSUMER_SECRET'],
                     :access_key => ENV['WEETER_TWITTER_ACCESS_KEY'],
                     :access_secret => ENV['WEETER_TWITTER_ACCESS_SECRET']
                    }
  end

  conf.client_app do |client_app|
    client_app.notification_plugin = :http
    client_app.oauth = {
        :consumer_key => ENV['WEETER_CLIENT_CONSUMER_KEY'],
        :consumer_secret => ENV['WEETER_CLIENT_CONSUMER_SECRET'],
        :access_key => ENV['WEETER_CLIENT_ACCESS_KEY'],
        :access_secret => ENV['WEETER_CLIENT_ACCESS_SECRET']
    }
    client_app.publish_url = ENV['WEETER_CLIENT_PUBLISH_URL']
    client_app.delete_url = ENV['WEETER_CLIENT_DELETE_URL']
    
    client_app.subscription_plugin = :http
    client_app.subscriptions_url = ENV['WEETER_CLIENT_SUBSCRIPTIONS_URL']
    client_app.subscription_updates_port = 7337 # only effective if running as a daemon
  end
  
  # Alternately...

  # conf.client_app do |client_app|
  #   client_app.notification_plugin = :resque
  #   client_app.queue = 'weeter'
  #   client_app.redis_uri = 'redis://redistogo:abcdef0123456789abcdef0123456789@somehost.redistogo.com:9052/'
  #   
  #   client_app.subscription_plugin = :redis
  #   client_app.subscriptions_key = 'weeter:subscriptions'
  #   client_app.subscriptions_changed_channel = 'weeter:subscriptions_changed'
  # end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
weeter-0.9.2 weeter.conf.example
weeter-0.9.1 weeter.conf.example
weeter-0.9.0 weeter.conf.example