Class: FindChangedFiles::BetweenRefs
- Inherits:
-
FindChangedFiles
- Object
- FindChangedFiles
- FindChangedFiles::BetweenRefs
- Defined in:
- lib/find_changed_files/between_refs.rb
Constant Summary collapse
- GIT_MERGE_BASE_COMMAND =
'git merge-base'.freeze
Constants inherited from FindChangedFiles
GIT_DIFF_COMMAND, GIT_DIFF_OPTIONS, REDIRECT_STDERR_TO_STDOUT
Instance Attribute Summary collapse
-
#base_ref ⇒ Object
readonly
Returns the value of attribute base_ref.
-
#diff_ref ⇒ Object
readonly
Returns the value of attribute diff_ref.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(base_ref:, diff_ref:) ⇒ BetweenRefs
constructor
A new instance of BetweenRefs.
Constructor Details
#initialize(base_ref:, diff_ref:) ⇒ BetweenRefs
Returns a new instance of BetweenRefs.
8 9 10 11 |
# File 'lib/find_changed_files/between_refs.rb', line 8 def initialize(base_ref:, diff_ref:) @base_ref = base_ref @diff_ref = diff_ref end |
Instance Attribute Details
#base_ref ⇒ Object (readonly)
Returns the value of attribute base_ref.
4 5 6 |
# File 'lib/find_changed_files/between_refs.rb', line 4 def base_ref @base_ref end |
#diff_ref ⇒ Object (readonly)
Returns the value of attribute diff_ref.
4 5 6 |
# File 'lib/find_changed_files/between_refs.rb', line 4 def diff_ref @diff_ref end |
Instance Method Details
#call ⇒ Object
13 14 15 |
# File 'lib/find_changed_files/between_refs.rb', line 13 def call differed_files(merge_base_ref, diff_ref) end |