Sha256: 7359cd9611139c0f7a3024239e59d19211d16f75915ffc74da99a416b9e6df3b
Contents?: true
Size: 877 Bytes
Versions: 3
Compression:
Stored size: 877 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 @version = @context['type'] == 'root' ? @context['build_path'] : execute_result GitUtil.repo_changed?(@context['full_build_path']) ? @version : false end def changed? stored_version = @context.stored_version['result'] # No commit hash for 'root' as it will be changed later @version = @context['type'] == 'root' ? @context['build_path'] : GitUtil.get(@context['repo'], @context['full_build_path'], @context.version_type, @context.version) stored_version != @version end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
docman-0.0.17 | lib/docman/builders/git_direct_builder.rb |
docman-0.0.16 | lib/docman/builders/git_direct_builder.rb |
docman-0.0.15 | lib/docman/builders/git_direct_builder.rb |