lib/gorgon/originator.rb in gorgon-0.8.2 vs lib/gorgon/originator.rb in gorgon-0.8.3

- old
+ new

@@ -150,15 +150,10 @@ def connection_information configuration[:connection] end def files - return @files unless @files.nil? - current_files = configuration[:files].reduce([]) do |memo, obj| - memo.concat(Dir[obj]) - end.uniq - runtime_file_reader = RuntimeFileReader.new configuration[:runtime_file] - @files = runtime_file_reader.sorted_files(current_files) + @files ||= RuntimeFileReader.new(configuration).sorted_files end def job_definition # TODO: remove duplication. Use sync_configuration job_config = configuration[:job]