Module: LogCabin::Modules::GitTag

Defined in:
lib/prospectus/modules/git_tag.rb

Overview

Pull state from a git tag

Instance Method Summary collapse

Instance Method Details

#load!Object



8
9
10
11
12
# File 'lib/prospectus/modules/git_tag.rb', line 8

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