Class: Dependabot::PullRequestCreator::BranchNamer::Base
- Inherits:
-
Object
- Object
- Dependabot::PullRequestCreator::BranchNamer::Base
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/pull_request_creator/branch_namer/base.rb
Direct Known Subclasses
DependencyGroupStrategy, MultiEcosystemStrategy, SoloStrategy
Instance Attribute Summary collapse
-
#branch_name_case ⇒ Object
readonly
Returns the value of attribute branch_name_case.
-
#dependencies ⇒ Object
readonly
Returns the value of attribute dependencies.
-
#files ⇒ Object
readonly
Returns the value of attribute files.
-
#max_length ⇒ Object
readonly
Returns the value of attribute max_length.
-
#prefix ⇒ Object
readonly
Returns the value of attribute prefix.
-
#separator ⇒ Object
readonly
Returns the value of attribute separator.
-
#target_branch ⇒ Object
readonly
Returns the value of attribute target_branch.
-
#template ⇒ Object
readonly
Returns the value of attribute template.
-
#word_separator ⇒ Object
readonly
Returns the value of attribute word_separator.
Instance Method Summary collapse
-
#initialize(dependencies:, files:, target_branch:, separator: "/", prefix: "dependabot", max_length: nil, word_separator: nil, branch_name_case: nil, template: nil) ⇒ Base
constructor
A new instance of Base.
- #new_branch_name ⇒ Object
Constructor Details
#initialize(dependencies:, files:, target_branch:, separator: "/", prefix: "dependabot", max_length: nil, word_separator: nil, branch_name_case: nil, template: nil) ⇒ Base
Returns a new instance of Base.
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 56 def initialize( dependencies:, files:, target_branch:, separator: "/", prefix: "dependabot", max_length: nil, word_separator: nil, branch_name_case: nil, template: nil ) @dependencies = dependencies @files = files @target_branch = target_branch @separator = separator @prefix = prefix @max_length = max_length @word_separator = word_separator @branch_name_case = branch_name_case @template = template end |
Instance Attribute Details
#branch_name_case ⇒ Object (readonly)
Returns the value of attribute branch_name_case.
37 38 39 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 37 def branch_name_case @branch_name_case end |
#dependencies ⇒ Object (readonly)
Returns the value of attribute dependencies.
16 17 18 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 16 def dependencies @dependencies end |
#files ⇒ Object (readonly)
Returns the value of attribute files.
19 20 21 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 19 def files @files end |
#max_length ⇒ Object (readonly)
Returns the value of attribute max_length.
31 32 33 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 31 def max_length @max_length end |
#prefix ⇒ Object (readonly)
Returns the value of attribute prefix.
28 29 30 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 28 def prefix @prefix end |
#separator ⇒ Object (readonly)
Returns the value of attribute separator.
25 26 27 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 25 def separator @separator end |
#target_branch ⇒ Object (readonly)
Returns the value of attribute target_branch.
22 23 24 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 22 def target_branch @target_branch end |
#template ⇒ Object (readonly)
Returns the value of attribute template.
40 41 42 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 40 def template @template end |
#word_separator ⇒ Object (readonly)
Returns the value of attribute word_separator.
34 35 36 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 34 def word_separator @word_separator end |
Instance Method Details
#new_branch_name ⇒ Object
79 80 81 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 79 def new_branch_name raise NotImplementedError end |