Class: ConventionalCommits::Configuration::ReleaseConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/models/release_configuration.rb

Overview

Configuration for branch name policies

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ ReleaseConfiguration

Returns a new instance of ReleaseConfiguration.



9
10
11
# File 'lib/models/release_configuration.rb', line 9

def initialize(options = {})
  @rules = (options["rules"] || []).map { |options| ReleaseRule.new(options) }
end

Instance Attribute Details

#rulesObject (readonly)

Returns the value of attribute rules.



7
8
9
# File 'lib/models/release_configuration.rb', line 7

def rules
  @rules
end