Sha256: 98f447e2a8e23f909e6e57ff118bbe6b94198b78820bb59bac317265bdef43f6
Contents?: true
Size: 632 Bytes
Versions: 6
Compression:
Stored size: 632 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]}" puts "Source #{catalogLocation}" end end
Version data entries
6 entries across 6 versions & 1 rubygems