{"record":{"id":"3c86e551bd03cdd2","repo":"ddollar/foreman","slug":"foreman-procfile-emptyfileerror","errorCode":null,"errorMessage":"Foreman::Procfile::EmptyFileError","messagePattern":"Foreman::Procfile::EmptyFileError","errorType":"exception","errorClass":"Foreman::Procfile::EmptyFileError","httpStatus":null,"severity":"error","filePath":"lib/foreman/procfile.rb","lineNumber":67,"sourceCode":"    @entries << [name, command]\n  end\n\n  # Remove a +Procfile+ entry\n  #\n  # @param [String] name  The name of the +Procfile+ entry to remove\n  #\n  def delete(name)\n    @entries.reject! { |n,c| name == n }\n  end\n\n  # Load a Procfile from a file\n  #\n  # @param [String] filename  The filename of the +Procfile+ to load\n  #\n  def load(filename)\n    parse_data = parse(filename)\n\n    raise EmptyFileError if parse_data.empty?\n\n    @entries.replace parse_data\n  end\n\n  # Save a Procfile to a file\n  #\n  # @param [String] filename  Save the +Procfile+ to this file\n  #\n  def save(filename)\n    File.open(filename, 'w') do |file|\n      file.puts self.to_s\n    end\n  end\n\n  # Get the +Procfile+ as a +String+\n  #\n  def to_s\n    @entries.map do |name, command|","sourceCodeStart":49,"sourceCodeEnd":85,"githubUrl":"https://github.com/ddollar/foreman/blob/f65ddba83932bd4670e014389d6e27ea1e20b469/lib/foreman/procfile.rb#L49-L85","documentation":"Error \"Foreman::Procfile::EmptyFileError\" thrown in ddollar/foreman.","triggerScenarios":"Thrown at lib/foreman/procfile.rb:67 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f65ddba83932bd4670e014389d6e27ea1e20b469","analyzedAt":"2026-08-21T19:15:07.709Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}