Method: Whisk::Provider::Ingredient#current_ref
- Defined in:
- lib/whisk/provider/ingredient.rb
#current_ref ⇒ Object
93 94 95 96 97 98 99 100 |
# File 'lib/whisk/provider/ingredient.rb', line 93 def current_ref cref = run_command!("git rev-parse --abbrev-ref HEAD", :cwd => resource.path).stdout.chomp if cref == 'HEAD' return run_command!("git describe --tags", :cwd => resource.path).stdout.chomp else return cref end end |