module LogCabin::Modules::GitTag
Pull state from a git tag
Public Instance Methods
load!()
click to toggle source
# 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