Sha256: 568ed600fba7df56dd018929cdabf8be0c9d681afe508de490487f4a0e08d22d

Contents?: true

Size: 399 Bytes

Versions: 15

Compression:

Stored size: 399 Bytes

Contents

require "dry/web/settings"
require "dry-types"

module <%= config[:camel_cased_app_name] %>
  class Settings < Dry::Web::Settings
    module Types
      include Dry::Types.module

      module Required
        String = Types::Strict::String.constrained(min_size: 1)
      end
    end

    setting :database_url, Types::Required::String
    setting :session_secret, Types::Required::String
  end
end

Version data entries

15 entries across 12 versions & 1 rubygems

Version Path
dry-web-roda-0.6.3 lib/dry/web/roda/skeletons/flat_project/system/__underscored_app_name__/settings.rb.tt
dry-web-roda-0.6.3 lib/dry/web/roda/skeletons/umbrella_project/system/__underscored_app_name__/settings.rb.tt
dry-web-roda-0.6.2 lib/dry/web/roda/skeletons/umbrella_project/system/__underscored_app_name__/settings.rb.tt
dry-web-roda-0.6.2 lib/dry/web/roda/skeletons/flat_project/system/__underscored_app_name__/settings.rb.tt
dry-web-roda-0.6.1 lib/dry/web/roda/skeletons/flat_project/system/__underscored_app_name__/settings.rb.tt
dry-web-roda-0.6.1 lib/dry/web/roda/skeletons/umbrella_project/system/__underscored_app_name__/settings.rb.tt
dry-web-roda-0.6.0 lib/dry/web/roda/skeletons/umbrella/system/__underscored_app_name__/settings.rb.tt
dry-web-roda-0.5.1 lib/dry/web/roda/skeletons/umbrella/system/__underscored_app_name__/settings.rb.tt
dry-web-roda-0.5.0 lib/dry/web/roda/skeletons/umbrella/system/__underscored_app_name__/settings.rb.tt
dry-web-roda-0.4.0 lib/dry/web/roda/skeletons/umbrella/component/__underscored_app_name__/settings.rb.tt
dry-web-roda-0.3.0 lib/dry/web/roda/skeletons/umbrella/component/__underscored_app_name__/settings.rb.tt
dry-web-roda-0.2.3 lib/dry/web/roda/skeletons/umbrella/component/__underscored_app_name__/settings.rb.tt
dry-web-roda-0.2.2 lib/dry/web/roda/skeletons/umbrella/component/__underscored_app_name__/settings.rb.tt
dry-web-roda-0.2.1 lib/dry/web/roda/skeletons/umbrella/component/__underscored_app_name__/settings.rb.tt
dry-web-roda-0.2.0 lib/dry/web/roda/skeletons/umbrella/component/__underscored_app_name__/settings.rb.tt