Sha256: 044c3ce2f45855ffa8c56bcbc4b1bdfef78939ac1140b40d7b46cc8aa8449a8c

Contents?: true

Size: 498 Bytes

Versions: 2

Compression:

Stored size: 498 Bytes

Contents

# -*- encoding : utf-8 -*-
require 'configurable'
require 'logger'

module Untied
  module Publisher
    def self.configure(&block)
      yield(config) if block_given?
      if config.deliver_messages
        Untied.start
      end
    end

    def self.config
      @config ||= Config.new
    end

    class Config
      include Configurable

      config :logger, Logger.new(STDOUT)
      config :deliver_messages, true
      config :service_name
      config :doorkeeper, nil
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
untied-publisher-0.0.2 lib/untied-publisher/config.rb
untied-publisher-0.0.1 lib/untied-publisher/config.rb