Class: ConfigModule::TakeltauConfig
- Inherits:
-
Object
- Object
- ConfigModule::TakeltauConfig
- Includes:
- LoggingModule, Singleton, SystemModule
- Defined in:
- lib/takeltau/lib/config.rb
Overview
tau config class.
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
-
#default ⇒ Object
Returns the value of attribute default.
-
#envvars ⇒ Object
Returns the value of attribute envvars.
-
#home ⇒ Object
Returns the value of attribute home.
-
#project ⇒ Object
Returns the value of attribute project.
Instance Method Summary collapse
-
#initialize ⇒ TakeltauConfig
constructor
A new instance of TakeltauConfig.
Methods included from SystemModule
#command_available_else_error?, #hash_to_yaml, #read_yaml_erb_file, #read_yaml_file, #rm_fr, #run, #run_and_capture, #run_and_exit, #run_and_fork, #try, #write_file
Methods included from LoggingModule
Constructor Details
#initialize ⇒ TakeltauConfig
Returns a new instance of TakeltauConfig.
14 15 16 17 18 19 20 |
# File 'lib/takeltau/lib/config.rb', line 14 def initialize @active = {} @default = {} @home = {} @project = {} @envvars = {} end |
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active.
12 13 14 |
# File 'lib/takeltau/lib/config.rb', line 12 def active @active end |
#default ⇒ Object
Returns the value of attribute default.
12 13 14 |
# File 'lib/takeltau/lib/config.rb', line 12 def default @default end |
#envvars ⇒ Object
Returns the value of attribute envvars.
12 13 14 |
# File 'lib/takeltau/lib/config.rb', line 12 def envvars @envvars end |
#home ⇒ Object
Returns the value of attribute home.
12 13 14 |
# File 'lib/takeltau/lib/config.rb', line 12 def home @home end |
#project ⇒ Object
Returns the value of attribute project.
12 13 14 |
# File 'lib/takeltau/lib/config.rb', line 12 def project @project end |