def save_ipa(path, overwrite = false)
      return nil unless @ipa[:data]
      path = Pathname.new path
      path = path + @ipa[:name] if path.directory? && @ipa[:name]

      raise JSS::AlreadyExistsError, "The file #{path} already exists" if path.exist? && !overwrite
      path.delete if path.exist?
      path.jss_save Base64.decode64(@ipa[:data])
    end
def save_ipa(path, overwrite = false)
      return nil unless @ipa[:data]
      path = Pathname.new path
      path = path + @ipa[:name] if path.directory? && @ipa[:name]

      raise JSS::AlreadyExistsError, "The file #{path} already exists" if path.exist? && !overwrite
      path.delete if path.exist?
      path.jss_save Base64.decode64(@ipa[:data])
    end
Save the application to a file.

 @param path[Pathname, String] The path to which the file should be saved.
 If the path given is an existing directory, the ipa's current filename will
 be used, if known.

 @param overwrite[Boolean] Overwrite the file if it exists? Defaults to false

 @return [void]