class Terradactyl::ConfigProject
Constants
- CONFIG_PROJECT_FILE
Public Class Methods
instance()
click to toggle source
# File lib/terradactyl/config.rb, line 117 def self.instance @instance ||= new end
Private Class Methods
new(config_file = nil, defaults: nil)
click to toggle source
# File lib/terradactyl/config.rb, line 46 def initialize(config_file = nil, defaults: nil) @config_file = config_file @defaults = load_defaults(defaults) @overlay = load_overlay(config_file) load_config end
Public Instance Methods
config_file()
click to toggle source
# File lib/terradactyl/config.rb, line 129 def config_file @config_file = CONFIG_PROJECT_FILE end
load_overlay(_overload)
click to toggle source
# File lib/terradactyl/config.rb, line 123 def load_overlay(_overload) YAML.load_file(config_file) rescue Errno::ENOENT => e abort "FATAL: Could not load project file: `#{config_file}`, #{e.message}" end