Module: Availability::Assets
- Defined in:
- lib/availability/assets.rb
Overview
Resolves runtime files both from a source checkout and an installed gem.
Constant Summary collapse
- ROOT =
File.('../..', __dir__)
Class Method Summary collapse
- .example_config_path ⇒ Object
- .favicon_path ⇒ Object
- .index_template_path ⇒ Object
- .nginx_template_path ⇒ Object
Class Method Details
.example_config_path ⇒ Object
10 11 12 |
# File 'lib/availability/assets.rb', line 10 def example_config_path File.join(ROOT, 'config', 'availability.example.yml') end |
.favicon_path ⇒ Object
14 15 16 |
# File 'lib/availability/assets.rb', line 14 def favicon_path File.join(ROOT, 'assets', 'favicon.svg') end |
.index_template_path ⇒ Object
18 19 20 |
# File 'lib/availability/assets.rb', line 18 def index_template_path File.join(ROOT, 'templates', 'index.html.erb') end |
.nginx_template_path ⇒ Object
22 23 24 |
# File 'lib/availability/assets.rb', line 22 def nginx_template_path File.join(ROOT, 'templates', 'nginx.conf.erb') end |