Sha256: 8da925ff19f34ee13492d9e8be4314ced86a9ef72d8b2befb2e32a473aa990a2
Contents?: true
Size: 735 Bytes
Versions: 2
Compression:
Stored size: 735 Bytes
Contents
require 'yaml' module Docman module Builders class GitBuilder < Builder register_builder :git def direct puts 'Do direct' GitUtil.get(@info['repo'], @info['full_build_path'], @info.version_type, @info.version) end def strip puts 'Do strip' FileUtils.rm_r(@info['full_build_path']) if File.directory? @info['full_build_path'] result = GitUtil.get(@info['repo'], @info['temp_path'], @info.version_type, @info.version) FileUtils.mkdir_p(@info['full_build_path']) FileUtils.cp_r(Dir["#{@info['temp_path']}/."], @info['full_build_path']) FileUtils.rm_r(File.join(@info['full_build_path'], '.git')) result end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
docman-0.0.5 | lib/docman/builders/git_builder.rb |
docman-0.0.4 | lib/docman/builders/git_builder.rb |