module Jamf::MacOSRedeployMgmtFramework
This module should be mixed in to Jamf::Computer
and Jamf::ComputerGroup
It provides access to the macos-managed-software-updates JPAPI resource for managed OS update commands to managed macs running Big Sur or higher.
Constants
- REDEPLOY_RSRC
The JP API resource for redeploying the management framework to a computer. The id will be appended when used.
Public Class Methods
included(includer)
click to toggle source
when this module is included, also extend our Class Methods
# File lib/jamf/api/jamf_pro/mixins/macos_redeploy_mgmt_framework.rb 35 def self.included(includer) 36 Jamf.load_msg "--> #{includer} is including #{self}" 37 includer.extend(ClassMethods) 38 end
Public Instance Methods
redeploy_mgmt_framework()
click to toggle source
Send a managed update command to an instance of Computer
or ComputerGroup
. This just calls the class method of the same name.
@see MacOSRedeployMgmtFramework.redeploy_mgmt_framework
# File lib/jamf/api/jamf_pro/mixins/macos_redeploy_mgmt_framework.rb 107 def redeploy_mgmt_framework 108 self.class.redeploy_mgmt_framework @id, cnx: @cnx 109 end