Module: Stable::Paths

Defined in:
lib/stable/paths.rb

Overview

Path utilities for Stable configuration and data directories

Class Method Summary collapse

Class Method Details

.app_config_file(app_name) ⇒ Object



30
31
32
# File 'lib/stable/paths.rb', line 30

def self.app_config_file(app_name)
  File.join(projects_dir, app_name, "#{app_name}.yml")
end

.apps_fileObject



22
23
24
# File 'lib/stable/paths.rb', line 22

def self.apps_file
  File.join(root, 'apps.yml')
end

.caddy_dirObject



10
11
12
# File 'lib/stable/paths.rb', line 10

def self.caddy_dir
  root
end

.caddyfileObject



14
15
16
# File 'lib/stable/paths.rb', line 14

def self.caddyfile
  File.join(caddy_dir, 'Caddyfile')
end

.certs_dirObject



18
19
20
# File 'lib/stable/paths.rb', line 18

def self.certs_dir
  File.join(root, 'certs')
end

.projects_dirObject



26
27
28
# File 'lib/stable/paths.rb', line 26

def self.projects_dir
  File.join(root, 'projects')
end

.rootObject



6
7
8
# File 'lib/stable/paths.rb', line 6

def self.root
  ENV['STABLE_TEST_ROOT'] || File.expand_path('~/StableCaddy')
end