Class: Konacha::Chai::Matchers::Collector

Inherits:
Object
  • Object
show all
Defined in:
lib/konacha-chai-matchers/collector.rb

Instance Method Summary collapse

Instance Method Details

#update_librariesObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/konacha-chai-matchers/collector.rb', line 9

def update_libraries
  `git submodule init`
  `git submodule update`
  modules = collect_libraries

  modules.each(&:update)
  modules.each(&:vendor)

  File.open('VERSIONS', 'w') do |f|
    modules.each do |m|
      f.puts "#{m.name}: #{m.version}"
    end
  end
end