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.expand_path('../..', __dir__)

Class Method Summary collapse

Class Method Details

.example_config_pathObject



10
11
12
# File 'lib/availability/assets.rb', line 10

def example_config_path
  File.join(ROOT, 'config', 'availability.example.yml')
end

.favicon_pathObject



14
15
16
# File 'lib/availability/assets.rb', line 14

def favicon_path
  File.join(ROOT, 'assets', 'favicon.svg')
end

.index_template_pathObject



18
19
20
# File 'lib/availability/assets.rb', line 18

def index_template_path
  File.join(ROOT, 'templates', 'index.html.erb')
end

.nginx_template_pathObject



22
23
24
# File 'lib/availability/assets.rb', line 22

def nginx_template_path
  File.join(ROOT, 'templates', 'nginx.conf.erb')
end