Method: Travis::Tools::Assets.asset_path
- Defined in:
- lib/travis/tools/assets.rb
.asset_path(file) ⇒ Object Also known as: []
11 12 13 14 15 |
# File 'lib/travis/tools/assets.rb', line 11 def asset_path(file) Pathname.glob(File.(file, BASE)).tap do |x| raise Travis::Client::AssetNotFound, file if x.empty? end.first.to_s end |