Sha256: 803a96d8bb0030e33db50183cdff50c2dd94b4e7d1f60a6d7cea1c623a31b81e
Contents?: true
Size: 860 Bytes
Versions: 11
Compression:
Stored size: 860 Bytes
Contents
module Docman module Builders class GitRootChainBuilder < Builder register_builder :git_root_chain_builder def execute GitUtil.get(@context['root_repo'], @context['full_build_path'], @context.version_type(type: 'root'), @context.version(type: 'root')) @version = Docman::Command.create({'type' => :git_copy_repo_content, 'remove_target' => true}, @context, self).perform @last_revision != @version ? @version : false end def changed? stored_version = @context.stored_version['result'] @last_revision = GitUtil.last_revision @context['temp_path'] # No commit hash for 'root' as it will be changed later @version = GitUtil.get(@context['repo'], @context['temp_path'], @context.version_type, @context.version) stored_version != @version end end end end
Version data entries
11 entries across 11 versions & 1 rubygems