Sha256: 295939f2dc1cd8af2d837d48b5838ccaa4ea7c2efb35d9335abd75c632fd7cd0
Contents?: true
Size: 591 Bytes
Versions: 18
Compression:
Stored size: 591 Bytes
Contents
require "git" require "fileutils" require "pathname" class GetCatalog def do(tag = nil) catalogLocation = Canzea::config[:catalog_location] FileUtils.rm_rf catalogLocation FileUtils.mkdir_p catalogLocation catalogLocation = Pathname.new(catalogLocation).realpath g = Git.clone(Canzea::config[:catalog_git], "", :path => catalogLocation) g.branch Canzea::config[:catalog_branch] if (tag != nil) puts "For tag #{tag}" g.tag tag end puts "Branch '#{g.branch}' Commit #{g.log[0]}" end end
Version data entries
18 entries across 18 versions & 1 rubygems