def upload_master_file(rw_pw, unmount = true)
      raise JSS::MissingDataError, 'No code specified. Use #code= first.' if @script_contents.nil? || @script_contents.empty?

      mdp = JSS::DistributionPoint.master_distribution_point
      raise JSS::InvaldDatatError, 'Incorrect password for read-write access to master distribution point.' unless mdp.check_pw :rw, rw_pw

      destination = mdp.mount(rw_pw, :rw) + "#{DIST_POINT_SCRIPTS_FOLDER}/#{@filename}"
      destination.save @script_contents
      mdp.unmount if unmount
    end
def upload_master_file(rw_pw, unmount = true)
      raise JSS::MissingDataError, 'No code specified. Use #code= first.' if @script_contents.nil? || @script_contents.empty?

      mdp = JSS::DistributionPoint.master_distribution_point
      raise JSS::InvaldDatatError, 'Incorrect password for read-write access to master distribution point.' unless mdp.check_pw :rw, rw_pw

      destination = mdp.mount(rw_pw, :rw) + "#{DIST_POINT_SCRIPTS_FOLDER}/#{@filename}"
      destination.save @script_contents
      mdp.unmount if unmount
    end
Save the @script_contents for this script to a file on the Master Distribution point.

 If you'll be uploading several files you can specify unmount as false, and do it manually when all
 are finished.

 use {#script_contents=}  to set the script_contents from a String or Pathname

 @param rw_pw[String] the password for the read/write account on the master Distribution Point

 @param unmount[Boolean] whether or not ot unount the distribution point when finished.

 @return [void]