Sha256: 976efacf9a517096ae675c5086e3c9c6cfaeda98d99af5639ecff5e5362af7c8

Contents?: true

Size: 755 Bytes

Versions: 20

Compression:

Stored size: 755 Bytes

Contents

require 'singleton'
module EtFakeCcd
  class Config
    include Singleton

    attr_accessor :microservice, :microservice_secret, :valid_credentials, :oauth2_client_id, :oauth2_redirect_url
    attr_accessor :file_storage_path
  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

20 entries across 20 versions & 1 rubygems

Version Path
et_fake_ccd-0.1.37 lib/et_fake_ccd/config.rb
et_fake_ccd-0.1.36 lib/et_fake_ccd/config.rb
et_fake_ccd-0.1.35 lib/et_fake_ccd/config.rb
et_fake_ccd-0.1.34 lib/et_fake_ccd/config.rb
et_fake_ccd-0.1.33 lib/et_fake_ccd/config.rb
et_fake_ccd-0.1.32 lib/et_fake_ccd/config.rb
et_fake_ccd-0.1.31 lib/et_fake_ccd/config.rb
et_fake_ccd-0.1.30 lib/et_fake_ccd/config.rb
et_fake_ccd-0.1.29 lib/et_fake_ccd/config.rb
et_fake_ccd-0.1.28 lib/et_fake_ccd/config.rb
et_fake_ccd-0.1.27 lib/et_fake_ccd/config.rb
et_fake_ccd-0.1.26 lib/et_fake_ccd/config.rb
et_fake_ccd-0.1.25 lib/et_fake_ccd/config.rb
et_fake_ccd-0.1.24 lib/et_fake_ccd/config.rb
et_fake_ccd-0.1.23 lib/et_fake_ccd/config.rb
et_fake_ccd-0.1.22 lib/et_fake_ccd/config.rb
et_fake_ccd-0.1.20 lib/et_fake_ccd/config.rb
et_fake_ccd-0.1.19 lib/et_fake_ccd/config.rb
et_fake_ccd-0.1.18 lib/et_fake_ccd/config.rb
et_fake_ccd-0.1.17 lib/et_fake_ccd/config.rb