Class: Filemerger::Configuration
- Inherits:
-
Object
- Object
- Filemerger::Configuration
- Defined in:
- lib/filemerger/configuration.rb
Instance Attribute Summary collapse
-
#delete_old_files ⇒ Object
readonly
Returns the value of attribute delete_old_files.
-
#masks ⇒ Object
readonly
Returns the value of attribute masks.
-
#ommit_lines ⇒ Object
readonly
Returns the value of attribute ommit_lines.
-
#result_mask ⇒ Object
readonly
Returns the value of attribute result_mask.
-
#working_folders ⇒ Object
readonly
Returns the value of attribute working_folders.
-
#xcode_project ⇒ Object
readonly
Returns the value of attribute xcode_project.
-
#xcode_targets ⇒ Object
readonly
Returns the value of attribute xcode_targets.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/filemerger/configuration.rb', line 14 def initialize Poster.post_configuration_search if File.exist?("Mergefile") Poster.post_configuration_found data = YAML.load_file("Mergefile") @masks = data["masks"] @result_mask = data["result_mask"] @delete_old_files = data["delete_old_files"] @working_folders = data["working_folders"] @ommit_lines = data["ommit_lines"] @xcode_project = data["xcode_project"] @xcode_targets = data["xcode_targets"] @ommit_lines = data["ommit_lines"] else Poster.post_configuration_not_found exit end end |
Instance Attribute Details
#delete_old_files ⇒ Object (readonly)
Returns the value of attribute delete_old_files.
6 7 8 |
# File 'lib/filemerger/configuration.rb', line 6 def delete_old_files @delete_old_files end |
#masks ⇒ Object (readonly)
Returns the value of attribute masks.
6 7 8 |
# File 'lib/filemerger/configuration.rb', line 6 def masks @masks end |
#ommit_lines ⇒ Object (readonly)
Returns the value of attribute ommit_lines.
6 7 8 |
# File 'lib/filemerger/configuration.rb', line 6 def ommit_lines @ommit_lines end |
#result_mask ⇒ Object (readonly)
Returns the value of attribute result_mask.
6 7 8 |
# File 'lib/filemerger/configuration.rb', line 6 def result_mask @result_mask end |
#working_folders ⇒ Object (readonly)
Returns the value of attribute working_folders.
6 7 8 |
# File 'lib/filemerger/configuration.rb', line 6 def working_folders @working_folders end |
#xcode_project ⇒ Object (readonly)
Returns the value of attribute xcode_project.
6 7 8 |
# File 'lib/filemerger/configuration.rb', line 6 def xcode_project @xcode_project end |
#xcode_targets ⇒ Object (readonly)
Returns the value of attribute xcode_targets.
6 7 8 |
# File 'lib/filemerger/configuration.rb', line 6 def xcode_targets @xcode_targets end |