Sha256: c50e269562927c4a3622645f6b1b254bee69c0c6ce6955a779f1c019f1c4c7ba

Contents?: true

Size: 275 Bytes

Versions: 2

Compression:

Stored size: 275 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`.chomp
        @state.value = regex_helper(tag)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
prospectus-0.0.3 lib/prospectus/modules/git_tag.rb
prospectus-0.0.2 lib/prospectus/modules/git_tag.rb