Class: MetaConfigFile

Inherits:
Object
  • Object
show all
Defined in:
lib/meta_config_file.rb

Constant Summary collapse

PROPERTY_FILENAME =
'.meta'

Instance Method Summary collapse

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_propertyObject



9
10
11
# File 'lib/meta_config_file.rb', line 9

def framework_property
	properties['framework']
end

#propertiesObject



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_filesObject



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_detectionObject



18
19
20
# File 'lib/meta_config_file.rb', line 18

def success_detection
  properties['success_detection']
end