Class: Taeval::GitCheckout::Runner
- Inherits:
-
Object
- Object
- Taeval::GitCheckout::Runner
- Defined in:
- lib/taeval/git_checkout/runner.rb
Instance Method Summary collapse
-
#initialize(config, output, reporter) ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
Constructor Details
Instance Method Details
#run ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/taeval/git_checkout/runner.rb', line 18 def run @config.source.each do |source| repo = RepoFactory.create( {host: source[:host], id: source[:id], user: source[:user], repo: source[:repo], prefix: @config.prefix, branch: @config.branch, token: @config.tokens[source[:host]], attr: @config.attr, solution: @config.solution}, @output, @reporter ) repo.validate repo.clone end end |