Sha256: 9745cdecc01ff2764fc4cbf9b5bfbc1cac8bfee8ae9dedc73b6442dc13b13b9e

Contents?: true

Size: 616 Bytes

Versions: 6

Compression:

Stored size: 616 Bytes

Contents

# frozen_string_literal: true

module DevSuite
  module Utils
    module Store
      module Config
        class Configuration < Utils::Construct::Config::Base
          set_default_settings(
            driver: {
              file: {
                path: "#{Dir.pwd}/tmp/store.json",
              },
            },
          )

          config_attr :driver,
            default_value: :memory,
            type: :symbol,
            resolver: :resolve_driver

          private

          def resolve_driver(value)
            Driver.build_component(value)
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dev_suite-0.2.13 lib/dev_suite/utils/store/config/configuration.rb
dev_suite-0.2.12 lib/dev_suite/utils/store/config/configuration.rb
dev_suite-0.2.11 lib/dev_suite/utils/store/config/configuration.rb
dev_suite-0.2.10 lib/dev_suite/utils/store/config/configuration.rb
dev_suite-0.2.9 lib/dev_suite/utils/store/config/configuration.rb
dev_suite-0.2.8 lib/dev_suite/utils/store/config/configuration.rb