Sha256: 3cc4c6fe79aee22f7a5edd97f8c9dc8a6eae768fa70008f6eb0c422093b55da2
Contents?: true
Size: 887 Bytes
Versions: 1
Compression:
Stored size: 887 Bytes
Contents
module Docman module Builders class GitDirectBuilder < Builder register_builder :git_direct_builder def execute execute_result = GitUtil.get(@context['repo'], @context['full_build_path'], @context.version_type, @context.version) # No commit hash for 'root' as it will be changed later result = @context['type'] == 'root' ? @context['build_path'] : execute_result GitUtil.repo_changed?(@context['full_build_path']) ? result : false end def changed? stored_version = @context.stored_version['result'] # No commit hash for 'root' as it will be changed later repo_version = @context['type'] == 'root' ? @context['build_path'] : GitUtil.get(@context['repo'], @context['full_build_path'], @context.version_type, @context.version, true) stored_version != repo_version end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
docman-0.0.14 | lib/docman/builders/git_direct_builder.rb |