Class: Forger::Config
- Includes:
- Template
- Defined in:
- lib/forger/config.rb
Constant Summary collapse
- @@data =
nil
Constants inherited from Base
Base::BUILD_ROOT, Base::SCRIPTS_INFO_PATH
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(options = {}) ⇒ Config
constructor
A new instance of Config.
Methods included from Template
Methods inherited from Base
Constructor Details
Instance Method Details
#data ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/forger/config.rb', line 14 def data return @@data if @@data text = RenderMePretty.result(@path, context: context) @@data = YAML.load(text) rescue Errno::ENOENT => e puts e. puts "The #{@path} does not exist. Please double check that it exists." exit end |