Sha256: 6390cfad16ae7fd13a84260f4f4b7e735cd6d4890b68a6e88ffb4dc15d91c33a

Contents?: true

Size: 460 Bytes

Versions: 2

Compression:

Stored size: 460 Bytes

Contents

require "git"
require "fileutils"
require "pathname"


class GetCatalog
    def do(tag = nil)
        FileUtils.rm_rf Canzea::config[:catalog_location]
        g = Git.clone(Canzea::config[:catalog_git], "", :path => Canzea::config[:catalog_location])
        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

2 entries across 2 versions & 1 rubygems

Version Path
canzea-0.1.1 lib/commands/get-catalog.rb
canzea-0.1.0 lib/commands/get-catalog.rb