Module: Travis::Tools::Assets
- Extended by:
- Assets
- Included in:
- CLI::Command, CLI::Command, Assets
- Defined in:
- lib/travis/tools/assets.rb
Constant Summary collapse
- BASE =
File.('../../../../assets', __FILE__)
Instance Method Summary collapse
Instance Method Details
#asset(file) ⇒ Object
11 12 13 |
# File 'lib/travis/tools/assets.rb', line 11 def asset(file) File.read(asset_path(file)) end |
#asset_path(file) ⇒ Object
7 8 9 |
# File 'lib/travis/tools/assets.rb', line 7 def asset_path(file) File.(file, BASE) end |