Class: CliTasks::Configuration
- Inherits:
-
Object
- Object
- CliTasks::Configuration
- Includes:
- Singleton
- Defined in:
- lib/clitasks/configuration.rb
Instance Attribute Summary collapse
-
#created_by ⇒ Object
Returns the value of attribute created_by.
Instance Method Summary collapse
Instance Attribute Details
#created_by ⇒ Object
Returns the value of attribute created_by.
4 5 6 |
# File 'lib/clitasks/configuration.rb', line 4 def created_by @created_by end |
Instance Method Details
#config ⇒ Object
10 11 12 |
# File 'lib/clitasks/configuration.rb', line 10 def config @config ||= YAML.load_file(@file) end |
#load(file = 'stories/config.yml') ⇒ Object
5 6 7 8 |
# File 'lib/clitasks/configuration.rb', line 5 def load(file='stories/config.yml') @file = file @created_by = config['created_by'] end |