Module: LabelWeaver::Configuration
- Defined in:
- lib/label_weaver/configuration/model.rb,
lib/label_weaver/configuration/contract.rb
Constant Summary collapse
- Model =
Defines the configuration model for use throughout the gem.
Data.define( :excludes, :git, :hooks ) do def initialize(git:, hooks: {}, excludes: []) super end end
- Contract =
Dry::Schema.Params do required(:git).hash do required(:repository).filled(:string) required(:branch).filled(:string) end optional(:excludes).array :string optional(:hooks).hash do optional(:develop).hash do optional(:before_start).array(:string) optional(:after_start).array(:string) optional(:before_stop).array(:string) optional(:after_stop).array(:string) end end end