Method: JSS::Policy#run_command=

Defined in:
lib/jss/api_object/policy.rb

#run_command=(command) ⇒ void Also known as: command_to_run=

This method returns an undefined value.

Set the unix shell command to be run on the client

Parameters:

  • command (String)

    the unix shell command to be run on the client

Raises:


997
998
999
1000
1001
# File 'lib/jss/api_object/policy.rb', line 997

def run_command=(command)
  raise JSS::InvalidDataError, 'Command to run must be a String' unless command.is_a? String
  @files_processes[:run_command] = command
  @need_to_update = true
end