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

Version Path
canzea-0.1.19 lib/commands/get-catalog.rb
canzea-0.1.18 lib/commands/get-catalog.rb
canzea-0.1.17 lib/commands/get-catalog.rb
canzea-0.1.16 lib/commands/get-catalog.rb
canzea-0.1.15 lib/commands/get-catalog.rb
canzea-0.1.14 lib/commands/get-catalog.rb
canzea-0.1.13 lib/commands/get-catalog.rb
canzea-0.1.12 lib/commands/get-catalog.rb
canzea-0.1.11 lib/commands/get-catalog.rb
canzea-0.1.10 lib/commands/get-catalog.rb
canzea-0.1.9 lib/commands/get-catalog.rb
canzea-0.1.8 lib/commands/get-catalog.rb
canzea-0.1.7 lib/commands/get-catalog.rb
canzea-0.1.6 lib/commands/get-catalog.rb
canzea-0.1.5 lib/commands/get-catalog.rb
canzea-0.1.4 lib/commands/get-catalog.rb
canzea-0.1.3 lib/commands/get-catalog.rb
canzea-0.1.2 lib/commands/get-catalog.rb