Method: Repositories#load!
- Defined in:
- lib/commands/plugin.rb
#load! ⇒ Object
334 335 336 337 338 339 340 |
# File 'lib/commands/plugin.rb', line 334 def load! contents = File.exist?(@cache_file) ? File.read(@cache_file) : defaults contents = defaults if contents.empty? @repositories = contents.split(/\n/).reject do |line| line =~ /^\s*#/ or line =~ /^\s*$/ end.map { |source| Repository.new(source.strip) } end |