Sha256: 60b29f7394175d36c9342b223a2c3fadd7ea24bb15ca40aa430e4474f90437dd

Contents?: true

Size: 480 Bytes

Versions: 1

Compression:

Stored size: 480 Bytes

Contents

require 'ruby-jss'
require_relative 'config'

module Lane


  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

end # Lane

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
Lane-Reporter-0.1.2 lib/Lane/connection.rb