Sha256: 29e1c308a50e38443d4f8b9808273727b22eac3ff900700fa0163035ce8f6fa0

Contents?: true

Size: 520 Bytes

Versions: 1

Compression:

Stored size: 520 Bytes

Contents

require 'tamashii/common'
module Tamashii
  module Client
    class Config < Tamashii::Config
      register :log_file, STDOUT

      register :use_ssl, false
      register :entry_point, "/tamashii"
      register :host, "localhost"
      register :port, 3000
      register :opening_timeout, 5
      register :opening_retry_interval, 1
      register :closing_timeout, 5

      def log_level(level = nil)
        return Client.logger.level if level.nil?
        Client.logger.level = level
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tamashii-client-0.1.0 lib/tamashii/client/config.rb