Class: Sleet::FetchCommand
- Inherits:
-
Object
- Object
- Sleet::FetchCommand
- Defined in:
- lib/sleet/fetch_command.rb
Instance Method Summary collapse
- #do! ⇒ Object
-
#initialize(config) ⇒ FetchCommand
constructor
A new instance of FetchCommand.
Constructor Details
#initialize(config) ⇒ FetchCommand
Returns a new instance of FetchCommand.
5 6 7 |
# File 'lib/sleet/fetch_command.rb', line 5 def initialize(config) @config = config end |
Instance Method Details
#do! ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/sleet/fetch_command.rb', line 9 def do! repo.validate! = [] fetchers.map do |fetcher| begin fetcher.do! rescue Sleet::Error => e << e. end end raise Thor::Error, .join("\n") unless .empty? end |