def save_to_disk
      FileUtils.mkdir_p(File.dirname(answer_file_path))

      write_file(answer_file_path, JSON.pretty_generate(answers))
    rescue SystemCallError, IOError => e
      raise PDK::CLI::FatalError, _("Unable to write '%{file}': %{msg}") % {
        file: answer_file_path,
        msg:  e.message,
      }
    end
def save_to_disk
      FileUtils.mkdir_p(File.dirname(answer_file_path))

      write_file(answer_file_path, JSON.pretty_generate(answers))
    rescue SystemCallError, IOError => e
      raise PDK::CLI::FatalError, _("Unable to write '%{file}': %{msg}") % {
        file: answer_file_path,
        msg:  e.message,
      }
    end
Save the in memory answer set to the answer file on disk.

 @raise [PDK::CLI::FatalError] if the answer file can not be written to.