Sha256: 0903add23eefec361705034955dd046d21f9eb12edb9f5819da868b86105d415

Contents?: true

Size: 509 Bytes

Versions: 8

Compression:

Stored size: 509 Bytes

Contents

module GitCompound
  class Component
    module Version
      # Component version as tag
      #
      class Tag < VersionStrategy
        def initialize(repository, tag)
          @repository = repository
          @tag        = tag
        end

        def ref
          @tag
        end

        def sha
          @repository.tags[@tag]
        end

        def reachable?
          @repository.tags.key?(@tag)
        end

        def to_s
          "tag: #{@tag}"
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
git_compound-0.2.2 lib/git_compound/component/version/tag.rb
git_compound-0.2.1 lib/git_compound/component/version/tag.rb
git_compound-0.2.0 lib/git_compound/component/version/tag.rb
git_compound-0.1.2 lib/git_compound/component/version/tag.rb
git_compound-0.1.1 lib/git_compound/component/version/tag.rb
git_compound-0.1.0 lib/git_compound/component/version/tag.rb
git_compound-0.0.10 lib/git_compound/component/version/tag.rb
git_compound-0.0.9 lib/git_compound/component/version/tag.rb