Sha256: 71606b7ecb36f9edda6e3df5b1e0c6dd632c7cd471542daa3be02c1762c5df39

Contents?: true

Size: 331 Bytes

Versions: 8

Compression:

Stored size: 331 Bytes

Contents

module LogCabin
  module Modules
    ##
    # Pull state from a git tag
    module GitTag
      include Prospectus.helpers.find(:regex)

      def load!
        tag = `git describe --tags --abbrev=0 2>/dev/null`.chomp
        fail('No tags found') if tag.empty?
        @state.value = regex_helper(tag)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
prospectus-0.0.12 lib/prospectus/modules/git_tag.rb
prospectus-0.0.11 lib/prospectus/modules/git_tag.rb
prospectus-0.0.10 lib/prospectus/modules/git_tag.rb
prospectus-0.0.9 lib/prospectus/modules/git_tag.rb
prospectus-0.0.8 lib/prospectus/modules/git_tag.rb
prospectus-0.0.6 lib/prospectus/modules/git_tag.rb
prospectus-0.0.5 lib/prospectus/modules/git_tag.rb
prospectus-0.0.4 lib/prospectus/modules/git_tag.rb