Sha256: 5eead101fc31ce189bc8655443d66b79b5fa963f23c41d437388dd6ec136752c
Contents?: true
Size: 549 Bytes
Versions: 1
Compression:
Stored size: 549 Bytes
Contents
# frozen_string_literal: true require_relative "git_fonky/version" require_relative "git_fonky/repo_dir" require_relative "git_fonky/work_repo_names" module GitFonky class Error < StandardError; end def self.sync_repos Dir.chdir "#{Dir.home}/code" do WORK_REPO_NAMES.each do |dir| repo = RepoDir.new(dir) Dir.chdir repo.dirname do puts repo.dirname.upcase next repo.invalid_branch_msg if repo.on_invalid_branch? repo.sync end puts "\n\n" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
git_fonky-0.1.0 | lib/git_fonky.rb |