Class: Wlog::FetchGitCommitsStandard
- Inherits:
-
Commandable
- Object
- Commandable
- Wlog::FetchGitCommitsStandard
- Defined in:
- lib/wlog/commands/fetch_git_commits_standard.rb
Overview
Instance Attribute Summary collapse
-
#commits ⇒ Object
Returns the value of attribute commits.
Instance Method Summary collapse
-
#execute ⇒ Object
Run the parser on the repo; yield commits.
-
#initialize(from, to) ⇒ FetchGitCommitsStandard
constructor
A new instance of FetchGitCommitsStandard.
Constructor Details
#initialize(from, to) ⇒ FetchGitCommitsStandard
Returns a new instance of FetchGitCommitsStandard.
13 14 15 16 17 |
# File 'lib/wlog/commands/fetch_git_commits_standard.rb', line 13 def initialize(from, to) @from, @to = from, to @author = KeyValue.get('author') @repo = KeyValue.get('git') end |
Instance Attribute Details
#commits ⇒ Object
Returns the value of attribute commits.
26 27 28 |
# File 'lib/wlog/commands/fetch_git_commits_standard.rb', line 26 def commits @commits end |
Instance Method Details
#execute ⇒ Object
Run the parser on the repo; yield commits
20 21 22 23 24 |
# File 'lib/wlog/commands/fetch_git_commits_standard.rb', line 20 def execute cmd = FetchGitCommits.new(@from, @to, @repo, @author) cmd.execute @commits = cmd.commits nil end |