Class: PullBundle::Base
- Inherits:
-
Object
- Object
- PullBundle::Base
- Defined in:
- lib/pull-bundle/base.rb
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
A new instance of Base.
- #repositories ⇒ Object
- #run(repositories) ⇒ Object
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
8 9 10 |
# File 'lib/pull-bundle/base.rb', line 8 def initialize run(repositories) end |
Instance Method Details
#repositories ⇒ Object
26 27 28 29 30 |
# File 'lib/pull-bundle/base.rb', line 26 def repositories Configr.repositories.map do |dir| Repository.new path: dir end end |
#run(repositories) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/pull-bundle/base.rb', line 12 def run(repositories) = ProgressBar.new('Running', repositories.size) results = repositories.map do |repository| result = repository.run .inc result end .finish Formatador.display_table(results) end |