module Lane

report.rb

Constants

CONFIG_ERROR
USAGE
VERSION

Public Class Methods

config() click to toggle source

The single instance of Configuration

# File lib/Lane/config.rb, line 83
def self.config
  Lane::Configuration.instance
end
connect_to_jss() click to toggle source
# File lib/Lane/connection.rb, line 7
def self.connect_to_jss
  # JSS Connection info

  begin
    JSS.api.connect user: Lane.config.jamf_user,
                    pw: Lane.config.jamf_password,
                    server: Lane.config.jamf_server,
                    verify_cert: false

    puts "Connected to the JSS."
  rescue
    puts "Could not connect to JSS. Please check the configuration."
    # abort
  end
end