Sha256: 1614b55be5313ef1e1fca2c4928c605a1e8b65caab9ab28473ff247afbae3a8a
Contents?: true
Size: 350 Bytes
Versions: 3
Compression:
Stored size: 350 Bytes
Contents
module Downer module DownloadStrategy class FlatFileStrategy < GenericStrategy def get_urls urls = [] f = File.open(@url_source, 'r') f.each_line { |line| urls << line.chomp} urls end def source_valid? File.exist?(@url_source) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
downer-0.3.2 | lib/downer/strategies/flat_file_strategy.rb |
downer-0.3.1 | lib/downer/strategies/flat_file_strategy.rb |
downer-0.3.0 | lib/downer/strategies/flat_file_strategy.rb |