bin/netseg-update in ruby-jss-1.6.4 vs bin/netseg-update in ruby-jss-2.0.0a10

- old
+ new

@@ -1,8 +1,8 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby -### Copyright 2020 Pixar +### Copyright 2022 Pixar ### ### Licensed under the Apache License, Version 2.0 (the "Apache License") ### with the following modification; you may not use this file except in ### compliance with the Apache License and the following modification to it: @@ -146,10 +146,10 @@ update_network_segments cache_latest_data end # run def connect_to_jss - JSS.api.connect( + Jamf.cnx.connect( server: @server, port: @port, verify_cert: @verify_cert, user: @user, pw: @getpass,