Class: Release::Notes::System
- Inherits:
-
Object
- Object
- Release::Notes::System
- Includes:
- Configurable
- Defined in:
- lib/release/notes/system.rb
Instance Attribute Summary collapse
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
Class Method Summary collapse
-
.all_tags ⇒ String
Call Git.read_all_tags method.
-
.first_commit ⇒ String
Call Git.first_commit method.
-
.last_tag ⇒ String
Call Git.last_tag method.
-
.tag_date(tag: nil) ⇒ String
Call Git.tag_date method.
Instance Method Summary collapse
-
#initialize(**opts) ⇒ Object
constructor
Release::Notes::System initializer.
-
#log ⇒ String
Call Git.log method with configurable options.
Constructor Details
#initialize(**opts) ⇒ Object
Release::Notes::System initializer
16 17 18 19 20 21 22 23 |
# File 'lib/release/notes/system.rb', line 16 def initialize(**opts) @opts = opts return unless opts.delete(:log_all) == true opts[:label] = config_all_labels opts[:invert_grep] = " --invert-grep" end |
Instance Attribute Details
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
7 8 9 |
# File 'lib/release/notes/system.rb', line 7 def opts @opts end |
Class Method Details
.all_tags ⇒ String
Call Git.read_all_tags method
49 50 51 |
# File 'lib/release/notes/system.rb', line 49 def `#{Git.}` end |
.first_commit ⇒ String
Call Git.first_commit method
40 41 42 |
# File 'lib/release/notes/system.rb', line 40 def first_commit `#{Git.first_commit}` end |