Method: LibGems::SourceIndex.from_gems_in

Defined in:
lib/libgems/source_index.rb

.from_gems_in(*spec_dirs) ⇒ Object

Creates a new SourceIndex from the ruby format gem specifications in spec_dirs.



75
76
77
78
79
# File 'lib/libgems/source_index.rb', line 75

def from_gems_in(*spec_dirs)
  source_index = new
  source_index.spec_dirs = spec_dirs
  source_index.refresh!
end