Class: ConventionalCommits::Configuration::BranchConfiguration

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

Overview

Configuration for branch name policies

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ BranchConfiguration

Returns a new instance of BranchConfiguration.



9
10
11
12
13
14
15
# File 'lib/models/branch_configuration.rb', line 9

def initialize(options = {})
  @ticket_prefix = options["ticket_prefix"] || ""
  @ticket = options["ticket"] || ""
  @ticket_separator = options["ticket_separator"] || "-"
  @lowercase = options["lowercase"] || true
  @pattern = options["pattern"] || "<scope>/<type>/<ticket>/<description>"
end

Instance Attribute Details

#lowercaseObject (readonly)

Returns the value of attribute lowercase.



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

def lowercase
  @lowercase
end

#patternObject (readonly)

Returns the value of attribute pattern.



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

def pattern
  @pattern
end

#ticketObject (readonly)

Returns the value of attribute ticket.



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

def ticket
  @ticket
end

#ticket_prefixObject (readonly)

Returns the value of attribute ticket_prefix.



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

def ticket_prefix
  @ticket_prefix
end

#ticket_separatorObject (readonly)

Returns the value of attribute ticket_separator.



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

def ticket_separator
  @ticket_separator
end