module Jess
Jess
is a lightweight client for the JAMF Software Server (JSS) API.
Example usage:
conn = Jess.connect
(“jsshost”, username: “user”, password: “secret”) computer = conn.computers.find(1234) computer.id # => 1234 computer.name # => “Matt's iMac” computer.hardware.model # => “iMac Intel (Retina 5k, 27-Inch, Late 2015)”
Constants
- VERSION
Public Class Methods
connect(url, username:, password:)
click to toggle source
Establish a connection with JSS and return a Jess::Connection
object that can be used to interact with the JSS API. This is a convenience method. For more fine-grained control over the connection, create a Jess::HttpClient
using the desired options, then pass it to Jess::Connection.new
.
# File lib/jess.rb, line 28 def self.connect(url, username:, password:) client = HttpClient.new(url, username: username, password: password) Connection.new(client) end