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
-
#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.
Instance Method Summary collapse
-
#initialize(dependencies:, files:, target_branch:, separator: "/", prefix: "dependabot", max_length: 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) ⇒ Base
Returns a new instance of Base.
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 42 def initialize( dependencies:, files:, target_branch:, separator: "/", prefix: "dependabot", max_length: nil ) @dependencies = dependencies @files = files @target_branch = target_branch @separator = separator @prefix = prefix @max_length = max_length end |
Instance Attribute Details
#dependencies ⇒ Object (readonly)
Returns the value of attribute dependencies.
14 15 16 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 14 def dependencies @dependencies end |
#files ⇒ Object (readonly)
Returns the value of attribute files.
17 18 19 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 17 def files @files end |
#max_length ⇒ Object (readonly)
Returns the value of attribute max_length.
29 30 31 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 29 def max_length @max_length end |
#prefix ⇒ Object (readonly)
Returns the value of attribute prefix.
26 27 28 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 26 def prefix @prefix end |
#separator ⇒ Object (readonly)
Returns the value of attribute separator.
23 24 25 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 23 def separator @separator end |
#target_branch ⇒ Object (readonly)
Returns the value of attribute target_branch.
20 21 22 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 20 def target_branch @target_branch end |
Instance Method Details
#new_branch_name ⇒ Object
59 60 61 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 59 def new_branch_name raise NotImplementedError end |