Module: Jamf::MacOSRedeployMgmtFramework

Included in:
Computer, ComputerGroup
Defined in:
lib/jamf/api/jamf_pro/mixins/macos_redeploy_mgmt_framework.rb

Overview

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.

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

REDEPLOY_RSRC =

The JP API resource for redeploying the management framework to a computer. The id will be appended when used.

'v1/jamf-management-framework/redeploy'

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(includer) ⇒ Object

when this module is included, also extend our Class Methods



35
36
37
38
# File 'lib/jamf/api/jamf_pro/mixins/macos_redeploy_mgmt_framework.rb', line 35

def self.included(includer)
  Jamf.load_msg "--> #{includer} is including #{self}"
  includer.extend(ClassMethods)
end

Instance Method Details

#redeploy_mgmt_frameworkObject

Send a managed update command to an instance of Computer or ComputerGroup. This just calls the class method of the same name.



107
108
109
# File 'lib/jamf/api/jamf_pro/mixins/macos_redeploy_mgmt_framework.rb', line 107

def redeploy_mgmt_framework
  self.class.redeploy_mgmt_framework @id, cnx: @cnx
end