lib/git_fonky.rb in git_fonky-0.1.0 vs lib/git_fonky.rb in git_fonky-0.2.0
- old
+ new
@@ -8,20 +8,10 @@
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"
+ RepoDir.new(dir).sync
end
end
end
end