Sha256: 1081c9e63133af1be7f610a1513ff31cf8cb65ac86a72c5e87febcbb0e23cd61

Contents?: true

Size: 928 Bytes

Versions: 44

Compression:

Stored size: 928 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
        @last_revision != @version ? @version : false
      end

      def changed?
        stored_version = @context.stored_version['result']
        @last_revision = GitUtil.last_revision @context['full_build_path']
        # 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

44 entries across 44 versions & 1 rubygems

Version Path
docman-0.0.69 lib/docman/builders/git_direct_builder.rb
docman-0.0.68 lib/docman/builders/git_direct_builder.rb
docman-0.0.67 lib/docman/builders/git_direct_builder.rb
docman-0.0.66 lib/docman/builders/git_direct_builder.rb
docman-0.0.65 lib/docman/builders/git_direct_builder.rb
docman-0.0.64 lib/docman/builders/git_direct_builder.rb
docman-0.0.63 lib/docman/builders/git_direct_builder.rb
docman-0.0.62 lib/docman/builders/git_direct_builder.rb
docman-0.0.61 lib/docman/builders/git_direct_builder.rb
docman-0.0.60 lib/docman/builders/git_direct_builder.rb
docman-0.0.59 lib/docman/builders/git_direct_builder.rb
docman-0.0.58 lib/docman/builders/git_direct_builder.rb
docman-0.0.57 lib/docman/builders/git_direct_builder.rb
docman-0.0.56 lib/docman/builders/git_direct_builder.rb
docman-0.0.55 lib/docman/builders/git_direct_builder.rb
docman-0.0.54 lib/docman/builders/git_direct_builder.rb
docman-0.0.53 lib/docman/builders/git_direct_builder.rb
docman-0.0.52 lib/docman/builders/git_direct_builder.rb
docman-0.0.51 lib/docman/builders/git_direct_builder.rb
docman-0.0.50 lib/docman/builders/git_direct_builder.rb