Sha256: be01ca2c19181cb926ec241e22c1ddcf2e5d46d29b60471112c50e9bb502e1e4

Contents?: true

Size: 500 Bytes

Versions: 5

Compression:

Stored size: 500 Bytes

Contents

module Jobshop
  class << self
    attr_writer :configuration

    def configuration
      @configuration ||= Configuration.new
    end

    def configure
      yield(configuration)
    end
  end

  class Configuration
    attr_accessor :mailer_host,
      :session_store_url

    def initialize
      @mailer_host = ENV.fetch("JOBSHOP_MAILER_HOST", "localhost:3000")
      @session_store_url ||= ENV.fetch("SESSION_STORE_URL", "redis://localhost:6379/0")
    end
  end
end

require "jobshop/engine"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jobshop-0.0.131 lib/jobshop.rb
jobshop-0.0.127 lib/jobshop.rb
jobshop-0.0.113 lib/jobshop.rb
jobshop-0.0.109 lib/jobshop.rb
jobshop-0.0.107 lib/jobshop.rb