Class: Filemerger::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_filesObject (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

#masksObject (readonly)

Returns the value of attribute masks.



6
7
8
# File 'lib/filemerger/configuration.rb', line 6

def masks
  @masks
end

#ommit_linesObject (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_maskObject (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_foldersObject (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_projectObject (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_targetsObject (readonly)

Returns the value of attribute xcode_targets.



6
7
8
# File 'lib/filemerger/configuration.rb', line 6

def xcode_targets
  @xcode_targets
end