Sha256: 5a26860ce6c1e0f17e184cc6b91cd430d5deda5290a2b3a2b06e6814dbb05813

Contents?: true

Size: 348 Bytes

Versions: 1

Compression:

Stored size: 348 Bytes

Contents

module GitGcCron
  class CLI

    def self.start
      ARGV.each do |base|
        repos = Dir["#{base}/**/{.git,*.git}"]
        repos.each_with_index do |repo_path, i|
          Dir.chdir(repo_path) do
            system ["git", "(##{i + 1}/#{repos.size + 1} #{repo_path}) git"], "gc", "-q"
          end
        end
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
git-gc-cron-0.0.2 lib/git_gc_cron/cli.rb