lib/pdk/answer_file.rb
def save_to_disk
      PDK::Util::Filesystem.mkdir_p(File.dirname(answer_file_path))

      PDK::Util::Filesystem.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.
Save the in memory answer set to the answer file on disk.
Save the in memory answer set to the answer file on disk .
def save_to_disk
      PDK::Util::Filesystem.mkdir_p(File.dirname(answer_file_path))
      PDK::Util::Filesystem.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 PDK :: Util :: Filesystem . mkdir_p ( File . dirname ( answer_file_path ) ) PDK :: Util :: Filesystem . 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.
Save the in memory answer set to the answer file on disk .
[PDK::CLI::FatalError] if the answer file can not be written to.
[ PDK :: CLI :: FatalError ] if the answer file can not be written to .