Sha256: 4f0195bc04565fa468dc75a767b120f7f38917795beb41595a933dbbba6b43e6

Contents?: true

Size: 393 Bytes

Versions: 6

Compression:

Stored size: 393 Bytes

Contents

module SneakersPacker
  class Configuration
    attr_accessor :app_name, :rpc_timeout

    # default timeout for remote call. unit is seconds
    DEFAULT_RPC_TIMEOUT = 5

    def initialize
      @app_name = 'unknown'
      @rpc_timeout = DEFAULT_RPC_TIMEOUT
    end
  end

  def self.conf
    @conf ||= Configuration.new
  end

  def self.configure(&block)
    block.call self.conf
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sneakers_packer-0.2.0 lib/sneakers_packer/configuration.rb
sneakers_packer-0.1.5 lib/sneakers_packer/configuration.rb
sneakers_packer-0.1.4 lib/sneakers_packer/configuration.rb
sneakers_packer-0.1.3 lib/sneakers_packer/configuration.rb
sneakers_packer-0.1.2 lib/sneakers_packer/configuration.rb
sneakers_packer-0.1.1 lib/sneakers_packer/configuration.rb