Sha256: f781452b5c94e98660cc4b01fb16b613fed63b980a82856bac116c98cfb82cbf
Contents?: true
Size: 767 Bytes
Versions: 2
Compression:
Stored size: 767 Bytes
Contents
require "git" require "fileutils" require "logger" require "pathname" class GetCatalog def initialize () @log = Logger.new(Canzea::config[:logging_root] + '/plans.log') end 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) @log.info "For tag #{tag}" g.tag tag end @log.info "Branch '#{g.branch}' Commit #{g.log[0]}" @log.info "Source #{catalogLocation}" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
canzea-0.1.32 | lib/commands/get-catalog.rb |
canzea-0.1.31 | lib/commands/get-catalog.rb |