lib/jss/api_object/script.rb
def delete_master_file(rw_pw, unmount = true)
      file = JSS::DistributionPoint.master_distribution_point.mount(rw_pw, :rw) + "#{DIST_POINT_SCRIPTS_FOLDER}/#{@filename}"
      if file.exist?
        file.delete
        did_it = true
      else
        did_it = false
      end # if exists
      JSS::DistributionPoint.master_distribution_point.unmount if unmount
      did_it
    end
### Delete the filename from the master distribution point, if it exists.
###
### If you'll be uploading several files you can specify unmount as false, and do it manually when all
### are finished.
###
### @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 [Boolean] was the file deleted?
###
Delete the filename from the master distribution point, if it exists.
If you'll be uploading several files you can specify unmount as false, and do it manually when all
are finished.
Delete the filename from the master distribution point if it exists . If you ' ll be uploading several files you can specify unmount as false and do it manually when all are finished .
def delete_master_file(rw_pw, unmount = true)
      file = JSS::DistributionPoint.master_distribution_point.mount(rw_pw, :rw) + "#{DIST_POINT_SCRIPTS_FOLDER}/#{@filename}"
      if file.exist?
        file.delete
        did_it = true
      else
        did_it = false
      end 
      JSS::DistributionPoint.master_distribution_point.unmount if unmount
      did_it
    end
def delete_master_file ( rw_pw , unmount = true ) file = JSS :: DistributionPoint . master_distribution_point . mount ( rw_pw , :rw ) + "#{DIST_POINT_SCRIPTS_FOLDER}/#{@filename}" if file . exist? file . delete did_it = true else did_it = false end JSS :: DistributionPoint . master_distribution_point . unmount if unmount did_it end
Delete the filename from the master distribution point, if it exists.
Delete the filename from the master distribution point if it exists .
# if exists
None
Boolean
rw_pw
the password for the read/write account on the master Distribution Point
the password for the read / write account on the master Distribution Point
unmount
whether or not ot unount the distribution point when finished.
whether or not ot unount the distribution point when finished .