module UpdateGitrepos

Main

Constants

VERSION

Public Class Methods

run(filePath) click to toggle source
# File lib/update_gitrepos.rb, line 58
def self.run(filePath)
  puts "running..."
  if filePath.nil? || filePath.empty?
    puts "error: need git repos directory path"
  else
    if File.directory?(filePath)
      gitReposArray = traverse(filePath)
      updateRepos(gitReposArray)
    else
      puts "error: not a directory"
    end
  end
end