Sha256: 8584a248116a5079ce4c725f6bfbb34ec1c48cf7c65f6d59c778b7a179477a60

Contents?: true

Size: 339 Bytes

Versions: 2

Compression:

Stored size: 339 Bytes

Contents

require 'logstash-logger'

module Restash
  class Conf

    class << self

      attr_accessor :logstash_host, :logstash_port

      def configure
        yield self
        true
      end

      def logger
        @logger ||= LogStashLogger.new(logstash_host, logstash_port)
      end

    end

  end
end

require 'restash/resque_server'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
restash-0.2.1 lib/restash/conf.rb
restash-0.2.0 lib/restash/conf.rb