Module: Landlord
- Defined in:
- lib/landlord.rb
Defined Under Namespace
Classes: Config, VirtualHost
Constant Summary
collapse
- VERSION =
Constants ============================================================
File.read(File.expand_path(File.join('..', 'VERSION'), File.dirname(__FILE__))).chomp.freeze
- DEFAULT_CONFIG_PATH =
'/etc/landlord.conf'.freeze
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
25
26
27
|
# File 'lib/landlord.rb', line 25
def self.config
@config ||= Config.new(self.config_path)
end
|
.config_path ⇒ Object
21
22
23
|
# File 'lib/landlord.rb', line 21
def self.config_path
@config_path || DEFAULT_CONFIG_PATH
end
|
.config_path=(path) ⇒ Object
Module Methods =======================================================
17
18
19
|
# File 'lib/landlord.rb', line 17
def self.config_path=(path)
@config_path = path
end
|