Class: ConventionalCommits::Configuration::BranchConfiguration
- Inherits:
-
Object
- Object
- ConventionalCommits::Configuration::BranchConfiguration
- Defined in:
- lib/models/branch_configuration.rb
Overview
Configuration for branch name policies
Instance Attribute Summary collapse
-
#lowercase ⇒ Object
readonly
Returns the value of attribute lowercase.
-
#pattern ⇒ Object
readonly
Returns the value of attribute pattern.
-
#ticket ⇒ Object
readonly
Returns the value of attribute ticket.
-
#ticket_prefix ⇒ Object
readonly
Returns the value of attribute ticket_prefix.
-
#ticket_separator ⇒ Object
readonly
Returns the value of attribute ticket_separator.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ BranchConfiguration
constructor
A new instance of BranchConfiguration.
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( = {}) @ticket_prefix = ["ticket_prefix"] || "" @ticket = ["ticket"] || "" @ticket_separator = ["ticket_separator"] || "-" @lowercase = ["lowercase"] || true @pattern = ["pattern"] || "<scope>/<type>/<ticket>/<description>" end |
Instance Attribute Details
#lowercase ⇒ Object (readonly)
Returns the value of attribute lowercase.
7 8 9 |
# File 'lib/models/branch_configuration.rb', line 7 def lowercase @lowercase end |
#pattern ⇒ Object (readonly)
Returns the value of attribute pattern.
7 8 9 |
# File 'lib/models/branch_configuration.rb', line 7 def pattern @pattern end |
#ticket ⇒ Object (readonly)
Returns the value of attribute ticket.
7 8 9 |
# File 'lib/models/branch_configuration.rb', line 7 def ticket @ticket end |
#ticket_prefix ⇒ Object (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_separator ⇒ Object (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 |