Module: Jess
- Defined in:
- lib/jess.rb,
lib/jess/version.rb,
lib/jess/computer.rb,
lib/jess/resource.rb,
lib/jess/computers.rb,
lib/jess/connection.rb,
lib/jess/http_client.rb,
lib/jess/mobile_device.rb,
lib/jess/mobile_devices.rb,
lib/jess/http_client/error.rb,
lib/jess/extension_attributes.rb,
lib/jess/http_client/error_decorator.rb,
lib/jess/http_client/logging_decorator.rb
Overview
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)”
Defined Under Namespace
Classes: Computer, Computers, Connection, ExtensionAttributes, HttpClient, MobileDevice, MobileDevices, Resource
Constant Summary collapse
- VERSION =
"1.4.1".freeze
Class Method Summary collapse
-
.connect(url, username:, password:) ⇒ Object
Establish a connection with JSS and return a Jess::Connection object that can be used to interact with the JSS API.
Class Method Details
.connect(url, username:, password:) ⇒ Object
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.
28 29 30 31 |
# File 'lib/jess.rb', line 28 def self.connect(url, username:, password:) client = HttpClient.new(url, username:, password:) Connection.new(client) end |