Class: MetaConfigFile
- Inherits:
-
Object
- Object
- MetaConfigFile
- Defined in:
- lib/meta_config_file.rb
Constant Summary collapse
- PROPERTY_FILENAME =
'.meta'
Instance Method Summary collapse
- #framework_property ⇒ Object
-
#initialize(shell) ⇒ MetaConfigFile
constructor
A new instance of MetaConfigFile.
- #properties ⇒ Object
- #source_files ⇒ Object
- #success_detection ⇒ Object
Constructor Details
#initialize(shell) ⇒ MetaConfigFile
Returns a new instance of MetaConfigFile.
5 6 7 |
# File 'lib/meta_config_file.rb', line 5 def initialize shell @shell = shell end |
Instance Method Details
#framework_property ⇒ Object
9 10 11 |
# File 'lib/meta_config_file.rb', line 9 def framework_property properties['framework'] end |
#properties ⇒ Object
22 23 24 25 |
# File 'lib/meta_config_file.rb', line 22 def properties @properties = @shell.read_properties PROPERTY_FILENAME unless @properties @properties end |
#source_files ⇒ Object
13 14 15 16 |
# File 'lib/meta_config_file.rb', line 13 def source_files end_of_string = '\Z' properties['source_files'] + end_of_string end |
#success_detection ⇒ Object
18 19 20 |
# File 'lib/meta_config_file.rb', line 18 def success_detection properties['success_detection'] end |