lib/jss/api_object/package.rb in ruby-jss-0.8.2 vs lib/jss/api_object/package.rb in ruby-jss-0.9.0.b1

- old
+ new

@@ -629,10 +629,10 @@ # in <9.72: jamf install -package foo.pkg -path http://mycasper.myorg.edu/CasperShare/Packages # but # in >=9.72: jamf install -package foo.pkg -path http://mycasper.myorg.edu/CasperShare/Packages/foo.pkg # append_at_vers = JSS.parse_jss_version('9.72')[:version] - our_vers = JSS.parse_jss_version(JSS::API.server.raw_version)[:version] + our_vers = JSS.parse_jss_version(JSS.api_connection.server.raw_version)[:version] no_filename_in_url = (our_vers < append_at_vers) # use a provided alternative url for an http download if args[:alt_download_url]