Class: Poper::Runner
- Inherits:
-
Object
- Object
- Poper::Runner
- Defined in:
- lib/poper/runner.rb
Instance Method Summary collapse
-
#initialize(commit, repo_path = '.') ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
Constructor Details
#initialize(commit, repo_path = '.') ⇒ Runner
Returns a new instance of Runner.
5 6 7 8 9 |
# File 'lib/poper/runner.rb', line 5 def initialize(commit, repo_path = '.') @repo = Rugged::Repository.new(repo_path) oid = @repo.rev_parse_oid(commit) @commit = @repo.lookup(oid) end |
Instance Method Details
#run ⇒ Object
11 12 13 |
# File 'lib/poper/runner.rb', line 11 def run commits.flat_map { |c| check(c) }.compact end |