Sha256: dd52c6378a65150e6020db148c1cb8d5290728fe5d988373acff9dd6dde92502

Contents?: true

Size: 818 Bytes

Versions: 12

Compression:

Stored size: 818 Bytes

Contents

require 'singleton'
require 'fileutils'
module EtFakeCcd
  class Config
    include Singleton

    attr_accessor :microservice, :microservice_secret, :valid_credentials, :oauth2_client_id, :oauth2_redirect_url
    attr_accessor :file_storage_path
    attr_accessor :create_case_schema_file
  end

  Config.instance.tap do |c|
    c.microservice = 'ccd_gw'
    c.microservice_secret = 'AAAAAAAAAAAAAAAC'
    c.valid_credentials = [
        {username: 'm@m.com', password: 'p'},
        {username: 'm@m.com', password: 'Pa55word11'}
    ]
    c.oauth2_client_id = "ccd_gateway"
    c.oauth2_redirect_url = "http://localhost:3451/oauth2redirect" # The contents of this at the moment are not important
    c.file_storage_path = File.join Dir.pwd, 'tmp', 'file_storage'
    FileUtils.mkdir_p(c.file_storage_path)
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
et_fake_ccd-2.1.0 lib/et_fake_ccd/config.rb
et_fake_ccd-2.0.0 lib/et_fake_ccd/config.rb
et_fake_ccd-1.1.11 lib/et_fake_ccd/config.rb
et_fake_ccd-1.1.10 lib/et_fake_ccd/config.rb
et_fake_ccd-1.1.9 lib/et_fake_ccd/config.rb
et_fake_ccd-1.1.8 lib/et_fake_ccd/config.rb
et_fake_ccd-1.1.6 lib/et_fake_ccd/config.rb
et_fake_ccd-1.1.5 lib/et_fake_ccd/config.rb
et_fake_ccd-1.1.4 lib/et_fake_ccd/config.rb
et_fake_ccd-1.1.3 lib/et_fake_ccd/config.rb
et_fake_ccd-1.1.2 lib/et_fake_ccd/config.rb
et_fake_ccd-1.1.1 lib/et_fake_ccd/config.rb