Sha256: 6f83816cece5b8582dfdb7bb02afba65177e6d94d1edddd76ac5977ef9bffaf2

Contents?: true

Size: 712 Bytes

Versions: 2

Compression:

Stored size: 712 Bytes

Contents

require 'dry/schema'

module Depec
  DEFAULT_CONFIG_FILE = '.depecrc.yml'
end

Depec::Configuration = Dry::Schema.Params do
  required(:targets).hash do
    optional(:ruby).hash do
      optional(:use).filled(:bool)
      optional(:version).filled(:bool)
      optional(:bundler_version).filled(:bool)
      optional(:gem_version).array(:str?)
    end

    optional(:node).hash do
      optional(:use).filled(:bool)
      optional(:version).filled(:bool)
      optional(:npm_version).array(:str?)
    end

    optional(:circle_ci).hash do
      optional(:use).filled(:bool)
      optional(:images).filled(:bool)
    end

    optional(:github_actions).hash do
      optional(:use).filled(:bool)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
depec-1.0.1 lib/depec/configuration.rb
depec-1.0.0 lib/depec/configuration.rb