jss-api 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jss-api.rb +1 -191
- metadata +16 -146
- data/.yardopts +0 -7
- data/CHANGES.md +0 -88
- data/LICENSE.txt +0 -174
- data/README.md +0 -396
- data/THANKS.md +0 -6
- data/bin/cgrouper +0 -485
- data/bin/subnet-update +0 -400
- data/lib/jss-api/api_connection.rb +0 -400
- data/lib/jss-api/api_object.rb +0 -616
- data/lib/jss-api/api_object/advanced_search.rb +0 -389
- data/lib/jss-api/api_object/advanced_search/advanced_computer_search.rb +0 -95
- data/lib/jss-api/api_object/advanced_search/advanced_mobile_device_search.rb +0 -96
- data/lib/jss-api/api_object/advanced_search/advanced_user_search.rb +0 -95
- data/lib/jss-api/api_object/building.rb +0 -92
- data/lib/jss-api/api_object/category.rb +0 -147
- data/lib/jss-api/api_object/computer.rb +0 -852
- data/lib/jss-api/api_object/creatable.rb +0 -98
- data/lib/jss-api/api_object/criteriable.rb +0 -189
- data/lib/jss-api/api_object/criteriable/criteria.rb +0 -231
- data/lib/jss-api/api_object/criteriable/criterion.rb +0 -228
- data/lib/jss-api/api_object/department.rb +0 -93
- data/lib/jss-api/api_object/distribution_point.rb +0 -560
- data/lib/jss-api/api_object/extendable.rb +0 -221
- data/lib/jss-api/api_object/extension_attribute.rb +0 -457
- data/lib/jss-api/api_object/extension_attribute/computer_extension_attribute.rb +0 -362
- data/lib/jss-api/api_object/extension_attribute/mobile_device_extension_attribute.rb +0 -189
- data/lib/jss-api/api_object/extension_attribute/user_extension_attribute.rb +0 -117
- data/lib/jss-api/api_object/group.rb +0 -380
- data/lib/jss-api/api_object/group/computer_group.rb +0 -124
- data/lib/jss-api/api_object/group/mobile_device_group.rb +0 -139
- data/lib/jss-api/api_object/group/user_group.rb +0 -139
- data/lib/jss-api/api_object/ldap_server.rb +0 -535
- data/lib/jss-api/api_object/locatable.rb +0 -286
- data/lib/jss-api/api_object/matchable.rb +0 -97
- data/lib/jss-api/api_object/mobile_device.rb +0 -556
- data/lib/jss-api/api_object/netboot_server.rb +0 -148
- data/lib/jss-api/api_object/network_segment.rb +0 -414
- data/lib/jss-api/api_object/osx_configuration_profile.rb +0 -261
- data/lib/jss-api/api_object/package.rb +0 -812
- data/lib/jss-api/api_object/peripheral.rb +0 -335
- data/lib/jss-api/api_object/peripheral_type.rb +0 -295
- data/lib/jss-api/api_object/policy.rb +0 -898
- data/lib/jss-api/api_object/purchasable.rb +0 -316
- data/lib/jss-api/api_object/removable_macaddr.rb +0 -98
- data/lib/jss-api/api_object/scopable.rb +0 -136
- data/lib/jss-api/api_object/scopable/scope.rb +0 -621
- data/lib/jss-api/api_object/script.rb +0 -631
- data/lib/jss-api/api_object/self_servable.rb +0 -355
- data/lib/jss-api/api_object/site.rb +0 -93
- data/lib/jss-api/api_object/software_update_server.rb +0 -109
- data/lib/jss-api/api_object/updatable.rb +0 -117
- data/lib/jss-api/api_object/uploadable.rb +0 -138
- data/lib/jss-api/api_object/user.rb +0 -272
- data/lib/jss-api/client.rb +0 -504
- data/lib/jss-api/compatibility.rb +0 -66
- data/lib/jss-api/composer.rb +0 -171
- data/lib/jss-api/configuration.rb +0 -306
- data/lib/jss-api/db_connection.rb +0 -298
- data/lib/jss-api/exceptions.rb +0 -95
- data/lib/jss-api/ruby_extensions.rb +0 -35
- data/lib/jss-api/ruby_extensions/filetest.rb +0 -43
- data/lib/jss-api/ruby_extensions/hash.rb +0 -79
- data/lib/jss-api/ruby_extensions/ipaddr.rb +0 -91
- data/lib/jss-api/ruby_extensions/pathname.rb +0 -77
- data/lib/jss-api/ruby_extensions/string.rb +0 -59
- data/lib/jss-api/ruby_extensions/time.rb +0 -63
- data/lib/jss-api/server.rb +0 -108
- data/lib/jss-api/utility.rb +0 -416
- data/lib/jss-api/version.rb +0 -31
data/lib/jss-api.rb
CHANGED
@@ -1,191 +1 @@
|
|
1
|
-
|
2
|
-
###
|
3
|
-
### Licensed under the Apache License, Version 2.0 (the "Apache License")
|
4
|
-
### with the following modification; you may not use this file except in
|
5
|
-
### compliance with the Apache License and the following modification to it:
|
6
|
-
### Section 6. Trademarks. is deleted and replaced with:
|
7
|
-
###
|
8
|
-
### 6. Trademarks. This License does not grant permission to use the trade
|
9
|
-
### names, trademarks, service marks, or product names of the Licensor
|
10
|
-
### and its affiliates, except as required to comply with Section 4(c) of
|
11
|
-
### the License and to reproduce the content of the NOTICE file.
|
12
|
-
###
|
13
|
-
### You may obtain a copy of the Apache License at
|
14
|
-
###
|
15
|
-
### http://www.apache.org/licenses/LICENSE-2.0
|
16
|
-
###
|
17
|
-
### Unless required by applicable law or agreed to in writing, software
|
18
|
-
### distributed under the Apache License with the above modification is
|
19
|
-
### distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
20
|
-
### KIND, either express or implied. See the Apache License for the specific
|
21
|
-
### language governing permissions and limitations under the Apache License.
|
22
|
-
###
|
23
|
-
###
|
24
|
-
|
25
|
-
###
|
26
|
-
### JSS, A Ruby module for interacting with the JAMF Software Server via it's REST API.
|
27
|
-
###
|
28
|
-
module JSS
|
29
|
-
|
30
|
-
#####################################
|
31
|
-
### Required Libraries, etc
|
32
|
-
#####################################
|
33
|
-
|
34
|
-
###################
|
35
|
-
### Standard Libraries
|
36
|
-
require 'date'
|
37
|
-
require 'singleton'
|
38
|
-
require 'pathname'
|
39
|
-
require 'fileutils'
|
40
|
-
require 'uri'
|
41
|
-
require "ipaddr"
|
42
|
-
require "rexml/document"
|
43
|
-
require "base64"
|
44
|
-
require "shellwords"
|
45
|
-
require "digest"
|
46
|
-
require 'yaml'
|
47
|
-
|
48
|
-
###################
|
49
|
-
### Gems
|
50
|
-
require 'rest-client'
|
51
|
-
require 'json'
|
52
|
-
require 'plist'
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
#####################################
|
57
|
-
### Constants
|
58
|
-
#####################################
|
59
|
-
|
60
|
-
### The minimum JSS version that works with this gem, as returned by the API
|
61
|
-
### in the deprecated 'jssuser' resource
|
62
|
-
MINIMUM_SERVER_VERSION = "9.4"
|
63
|
-
|
64
|
-
### The current local UTC offset as a fraction of a day (Time.now.utc_offset is the offset in seconds,
|
65
|
-
### 60*60*24 is the seconds in a day)
|
66
|
-
TIME_ZONE_OFFSET = Rational(Time.now.utc_offset, 60*60*24)
|
67
|
-
|
68
|
-
### These are handy for testing values without making new arrays, strings, etc every time.
|
69
|
-
TRUE_FALSE = [true, false]
|
70
|
-
|
71
|
-
### When parsing a date/time data into a Time object, these will return nil
|
72
|
-
NIL_DATES = [0, nil, '', '0']
|
73
|
-
|
74
|
-
### The contents of anything piped to stdin, split into lines. See {JSS.stdin}
|
75
|
-
STDIN_LINES = $stdin.tty? ? [] : $stdin.read.lines.map{|line| line.chomp("\n") }
|
76
|
-
|
77
|
-
|
78
|
-
#####################################
|
79
|
-
### Module Variables
|
80
|
-
#####################################
|
81
|
-
|
82
|
-
#####################################
|
83
|
-
### Module Methods
|
84
|
-
#####################################
|
85
|
-
|
86
|
-
|
87
|
-
###
|
88
|
-
### Define classes and submodules here so that they don't
|
89
|
-
### generate errors when referenced during the loading of
|
90
|
-
### the library.
|
91
|
-
###
|
92
|
-
|
93
|
-
#####################################
|
94
|
-
### Sub Modules
|
95
|
-
#####################################
|
96
|
-
|
97
|
-
module Composer ; end
|
98
|
-
|
99
|
-
### Mix-in Sub Modules
|
100
|
-
|
101
|
-
module Creatable ; end
|
102
|
-
module FileUpload ; end
|
103
|
-
module Locatable ; end
|
104
|
-
module Matchable ; end
|
105
|
-
module Purchasable ; end
|
106
|
-
module Updatable ; end
|
107
|
-
module Extendable ; end
|
108
|
-
|
109
|
-
### Mix-in Sub Modules with Classes
|
110
|
-
|
111
|
-
module Criteriable ; end
|
112
|
-
class Criteriable::Criteria ; end
|
113
|
-
class Criteriable::Criterion ; end
|
114
|
-
|
115
|
-
module Scopable ; end
|
116
|
-
class Scopable::Scope ; end
|
117
|
-
|
118
|
-
#####################################
|
119
|
-
### Classes
|
120
|
-
#####################################
|
121
|
-
|
122
|
-
class APIObject ; end
|
123
|
-
class APIConnection ; end
|
124
|
-
class Client ; end
|
125
|
-
class DBConnection ; end
|
126
|
-
class Server ; end
|
127
|
-
class Preferences ; end
|
128
|
-
|
129
|
-
#####################################
|
130
|
-
### SubClasses
|
131
|
-
#####################################
|
132
|
-
|
133
|
-
### APIObject Classes with SubClasses
|
134
|
-
|
135
|
-
class AdvancedSearch < JSS::APIObject ; end
|
136
|
-
class AdvancedComputerSearch < JSS::AdvancedSearch ; end
|
137
|
-
class AdvancedMobileDeviceSearch < JSS::AdvancedSearch ; end
|
138
|
-
class AdvancedUserSearch < JSS::AdvancedSearch ; end
|
139
|
-
|
140
|
-
|
141
|
-
class ExtensionAttribute < JSS::APIObject ; end
|
142
|
-
class ComputerExtensionAttribute < JSS::ExtensionAttribute ; end
|
143
|
-
class MobileDeviceExtensionAttribute < JSS::ExtensionAttribute ; end
|
144
|
-
class UserExtensionAttribute < JSS::ExtensionAttribute ; end
|
145
|
-
|
146
|
-
class Group < JSS::APIObject ; end
|
147
|
-
class ComputerGroup < JSS::Group ; end
|
148
|
-
class MobileDeviceGroup < JSS::Group ; end
|
149
|
-
class UserGroup < JSS::Group ; end
|
150
|
-
|
151
|
-
### APIObject Classes without SubClasses
|
152
|
-
|
153
|
-
class Building < JSS::APIObject ; end
|
154
|
-
class Category < JSS::APIObject ; end
|
155
|
-
class Computer < JSS::APIObject ; end
|
156
|
-
class Department < JSS::APIObject ; end
|
157
|
-
class DistributionPoint < JSS::APIObject ; end
|
158
|
-
class LDAPServer < JSS::APIObject ; end
|
159
|
-
class MobileDevice < JSS::APIObject ; end
|
160
|
-
class NetBootServer < JSS::APIObject ; end
|
161
|
-
class NetworkSegment < JSS::APIObject ; end
|
162
|
-
class Package < JSS::APIObject ; end
|
163
|
-
class PeripheralType < JSS::APIObject ; end
|
164
|
-
class Peripheral < JSS::APIObject ; end
|
165
|
-
class Policy < JSS::APIObject ; end
|
166
|
-
class RemovableMacAddress < JSS::APIObject ; end
|
167
|
-
class Script < JSS::APIObject ; end
|
168
|
-
class Site < JSS::APIObject ; end
|
169
|
-
class SoftwareUpdateServer < JSS::APIObject ; end
|
170
|
-
class User < JSS::APIObject ; end
|
171
|
-
|
172
|
-
|
173
|
-
end # module JSS
|
174
|
-
|
175
|
-
|
176
|
-
##################
|
177
|
-
### Load the rest of the module
|
178
|
-
# $:.unshift File.dirname(__FILE__)
|
179
|
-
|
180
|
-
require "jss-api/utility"
|
181
|
-
require "jss-api/composer"
|
182
|
-
require "jss-api/compatibility"
|
183
|
-
require "jss-api/ruby_extensions"
|
184
|
-
require "jss-api/exceptions"
|
185
|
-
require "jss-api/api_connection"
|
186
|
-
require "jss-api/api_object"
|
187
|
-
require "jss-api/server"
|
188
|
-
require "jss-api/client"
|
189
|
-
require "jss-api/configuration"
|
190
|
-
require "jss-api/db_connection"
|
191
|
-
require "jss-api/version"
|
1
|
+
require 'jss'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jss-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,16 +9,16 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-03-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: ruby-jss
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 0.6.2
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,152 +26,23 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: ruby-mysql
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - '>='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: '0'
|
38
|
-
type: :runtime
|
39
|
-
prerelease: false
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - '>='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '0'
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: rest-client
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - '>='
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 1.7.0
|
54
|
-
type: :runtime
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - '>='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 1.7.0
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: net-ldap
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - '>='
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
70
|
-
type: :runtime
|
71
|
-
prerelease: false
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - '>='
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '0'
|
29
|
+
version: 0.6.2
|
78
30
|
description: |2
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
executables:
|
86
|
-
- cgrouper
|
87
|
-
- subnet-update
|
31
|
+
This is the last version of the gem named jss-api. It exists merely as a pointer to the new
|
32
|
+
gem 'ruby-jss' which provdes the same module going forward.
|
33
|
+
Requiring 'jss-api' will merely require 'jss'. However, please update your code to require 'jss'
|
34
|
+
directly, as this wrapper will eventually go away.
|
35
|
+
email: ruby-jss@pixar.com
|
36
|
+
executables: []
|
88
37
|
extensions: []
|
89
|
-
extra_rdoc_files:
|
90
|
-
- README.md
|
91
|
-
- LICENSE.txt
|
92
|
-
- CHANGES.md
|
93
|
-
- THANKS.md
|
38
|
+
extra_rdoc_files: []
|
94
39
|
files:
|
95
|
-
- lib/jss-api/api_connection.rb
|
96
|
-
- lib/jss-api/api_object/advanced_search/advanced_computer_search.rb
|
97
|
-
- lib/jss-api/api_object/advanced_search/advanced_mobile_device_search.rb
|
98
|
-
- lib/jss-api/api_object/advanced_search/advanced_user_search.rb
|
99
|
-
- lib/jss-api/api_object/advanced_search.rb
|
100
|
-
- lib/jss-api/api_object/building.rb
|
101
|
-
- lib/jss-api/api_object/category.rb
|
102
|
-
- lib/jss-api/api_object/computer.rb
|
103
|
-
- lib/jss-api/api_object/creatable.rb
|
104
|
-
- lib/jss-api/api_object/criteriable/criteria.rb
|
105
|
-
- lib/jss-api/api_object/criteriable/criterion.rb
|
106
|
-
- lib/jss-api/api_object/criteriable.rb
|
107
|
-
- lib/jss-api/api_object/department.rb
|
108
|
-
- lib/jss-api/api_object/distribution_point.rb
|
109
|
-
- lib/jss-api/api_object/extendable.rb
|
110
|
-
- lib/jss-api/api_object/extension_attribute/computer_extension_attribute.rb
|
111
|
-
- lib/jss-api/api_object/extension_attribute/mobile_device_extension_attribute.rb
|
112
|
-
- lib/jss-api/api_object/extension_attribute/user_extension_attribute.rb
|
113
|
-
- lib/jss-api/api_object/extension_attribute.rb
|
114
|
-
- lib/jss-api/api_object/group/computer_group.rb
|
115
|
-
- lib/jss-api/api_object/group/mobile_device_group.rb
|
116
|
-
- lib/jss-api/api_object/group/user_group.rb
|
117
|
-
- lib/jss-api/api_object/group.rb
|
118
|
-
- lib/jss-api/api_object/ldap_server.rb
|
119
|
-
- lib/jss-api/api_object/locatable.rb
|
120
|
-
- lib/jss-api/api_object/matchable.rb
|
121
|
-
- lib/jss-api/api_object/mobile_device.rb
|
122
|
-
- lib/jss-api/api_object/netboot_server.rb
|
123
|
-
- lib/jss-api/api_object/network_segment.rb
|
124
|
-
- lib/jss-api/api_object/osx_configuration_profile.rb
|
125
|
-
- lib/jss-api/api_object/package.rb
|
126
|
-
- lib/jss-api/api_object/peripheral.rb
|
127
|
-
- lib/jss-api/api_object/peripheral_type.rb
|
128
|
-
- lib/jss-api/api_object/policy.rb
|
129
|
-
- lib/jss-api/api_object/purchasable.rb
|
130
|
-
- lib/jss-api/api_object/removable_macaddr.rb
|
131
|
-
- lib/jss-api/api_object/scopable/scope.rb
|
132
|
-
- lib/jss-api/api_object/scopable.rb
|
133
|
-
- lib/jss-api/api_object/script.rb
|
134
|
-
- lib/jss-api/api_object/self_servable.rb
|
135
|
-
- lib/jss-api/api_object/site.rb
|
136
|
-
- lib/jss-api/api_object/software_update_server.rb
|
137
|
-
- lib/jss-api/api_object/updatable.rb
|
138
|
-
- lib/jss-api/api_object/uploadable.rb
|
139
|
-
- lib/jss-api/api_object/user.rb
|
140
|
-
- lib/jss-api/api_object.rb
|
141
|
-
- lib/jss-api/client.rb
|
142
|
-
- lib/jss-api/compatibility.rb
|
143
|
-
- lib/jss-api/composer.rb
|
144
|
-
- lib/jss-api/configuration.rb
|
145
|
-
- lib/jss-api/db_connection.rb
|
146
|
-
- lib/jss-api/exceptions.rb
|
147
|
-
- lib/jss-api/ruby_extensions/filetest.rb
|
148
|
-
- lib/jss-api/ruby_extensions/hash.rb
|
149
|
-
- lib/jss-api/ruby_extensions/ipaddr.rb
|
150
|
-
- lib/jss-api/ruby_extensions/pathname.rb
|
151
|
-
- lib/jss-api/ruby_extensions/string.rb
|
152
|
-
- lib/jss-api/ruby_extensions/time.rb
|
153
|
-
- lib/jss-api/ruby_extensions.rb
|
154
|
-
- lib/jss-api/server.rb
|
155
|
-
- lib/jss-api/utility.rb
|
156
|
-
- lib/jss-api/version.rb
|
157
40
|
- lib/jss-api.rb
|
158
|
-
|
159
|
-
- README.md
|
160
|
-
- LICENSE.txt
|
161
|
-
- CHANGES.md
|
162
|
-
- THANKS.md
|
163
|
-
- bin/cgrouper
|
164
|
-
- bin/subnet-update
|
165
|
-
homepage: http://pixaranimationstudios.github.io/jss-api-gem/
|
41
|
+
homepage: http://pixaranimationstudios.github.io/ruby-jss/
|
166
42
|
licenses:
|
167
43
|
- Modified Apache-2.0
|
168
44
|
post_install_message:
|
169
|
-
rdoc_options:
|
170
|
-
- --title
|
171
|
-
- JSS
|
172
|
-
- --line-numbers
|
173
|
-
- --main
|
174
|
-
- README.md
|
45
|
+
rdoc_options: []
|
175
46
|
require_paths:
|
176
47
|
- lib
|
177
48
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -179,7 +50,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
179
50
|
requirements:
|
180
51
|
- - '>='
|
181
52
|
- !ruby/object:Gem::Version
|
182
|
-
version:
|
53
|
+
version: '0'
|
183
54
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
55
|
none: false
|
185
56
|
requirements:
|
@@ -191,6 +62,5 @@ rubyforge_project:
|
|
191
62
|
rubygems_version: 1.8.25
|
192
63
|
signing_key:
|
193
64
|
specification_version: 3
|
194
|
-
summary: A
|
65
|
+
summary: A backward-compatibility wrapper for the ruby-jss gem (formerly jss-api)
|
195
66
|
test_files: []
|
196
|
-
has_rdoc: true
|
data/.yardopts
DELETED
data/CHANGES.md
DELETED
@@ -1,88 +0,0 @@
|
|
1
|
-
# Change History
|
2
|
-
|
3
|
-
## v0.6.1 2016-03-01
|
4
|
-
|
5
|
-
#### additions & features
|
6
|
-
|
7
|
-
- JSS::Package#install now takes :alt_download_url argument.Can be used to specify a custom URL from which to download a pkg/dmg for installation with 'jamf install'. This allows the use of cloud distribution points.
|
8
|
-
- JSS::DistributionPoint: Added reachability methods, improved assessment of mount-success. #reachable_for_download? and #reachable_for_upload? will now return a boolean indicating if the DistPoint is reachable.
|
9
|
-
|
10
|
-
## v0.6.0 2016-01-06
|
11
|
-
|
12
|
-
This version of the jss-api gem incorporates changes needed for the upcoming release of d3 (a.k.a. depot3),
|
13
|
-
a package/patch management system for Casper, which was the reason for the jss-api gem to begin with.
|
14
|
-
|
15
|
-
As such, while the JSS module will continue to be a separate git repo, specific commits of it will be
|
16
|
-
submodules of the depot3 git repo, starting with this one, or one shortly hereafter.
|
17
|
-
|
18
|
-
|
19
|
-
#### bugfixes & cleanup
|
20
|
-
|
21
|
-
- new path to the jamf binary was corrected
|
22
|
-
- fixed the logic in using the :use_ssl arg to JSS::APIConnection::connect
|
23
|
-
- Composer module no longer adds redundant .pkg extensions
|
24
|
-
- JSS::DistributionPoint, bug fix when initializing with :id=>:master
|
25
|
-
- JSS::DistributionPoint: #mount now defaults to read-only unless :rw is passed
|
26
|
-
- String: added #jss_to_time to convertion strings to Time objects using JSS::parse_time
|
27
|
-
- JSS::Package: better handling of API values like "None" and "No category assigned"
|
28
|
-
- JSS::Package: added #type to return :pkg or :dmg
|
29
|
-
- JSS::Package: Changes to #install, including return value! See NOTES below.
|
30
|
-
- lots of code cleanup
|
31
|
-
|
32
|
-
#### additions & features
|
33
|
-
|
34
|
-
- JSS::APIConnection and JSS::DBConnection determines server hostname via several means if not yet connected
|
35
|
-
- JSS::APIConnection and JSS::DBConnection can test validitiy of a server
|
36
|
-
- JSS::DBConnection now has a DEFAULT_PORT constant
|
37
|
-
|
38
|
-
|
39
|
-
NOTES:
|
40
|
-
|
41
|
-
Important: Package#install now returns a boolean indicating success of installation.
|
42
|
-
The previous return value (the Process::Status of the 'jamf install' proceess) usually returned 0 exitstatus even if the pkg install failed.
|
43
|
-
Now the actual install command is examined, and if its exitstatus is zero, Package#install returns true, else false.
|
44
|
-
|
45
|
-
Also: As of casper 9.72, the argument requirements havechanged for 'jamf install' with http downloads. This is now handled correctly
|
46
|
-
|
47
|
-
|
48
|
-
## v0.5.8 2015-09-22
|
49
|
-
|
50
|
-
#### bugfixes & cleanup
|
51
|
-
|
52
|
-
- location.rb: location value setters are now properly converted to strings
|
53
|
-
- api_connection.rb: #connect now takes :use_ssl option (defaults to true)
|
54
|
-
- api_connection.rb: #connect will accept arbitrary ports when :use_ssl is true
|
55
|
-
|
56
|
-
#### additions & features
|
57
|
-
|
58
|
-
- client.rb: looks for the new ElCap+ location for the jamf binary, falls back to old location if not found.
|
59
|
-
- Locatable#clear_location public instance method added
|
60
|
-
- TimeoutError and AuthenticationError have been added to exceptions
|
61
|
-
- Policy objects now have a #run method - attempts to execute the policy locally.
|
62
|
-
|
63
|
-
## v0.5.7 2015-05-26
|
64
|
-
|
65
|
-
#### bugfixes & cleanup
|
66
|
-
|
67
|
-
- JSS.to_s_and_a now properly converts nils to "" and []
|
68
|
-
- DBConnection.connect gracefully handle reconnecting if the old connection went away
|
69
|
-
- DBConnection.connect, and APIConnection.connect: include server name when prompting for password
|
70
|
-
- Configuration: handle lack of ENV['HOME'] when trying to expand ~ to locate user-level config file.
|
71
|
-
- MobileDevice#unmanage_device: send_mdm_command is a class method, not an instance method
|
72
|
-
- APIObject: auto-set @site and @category if applicable
|
73
|
-
- Package: os_requirements default to empty array if unset in JSS
|
74
|
-
- Package#required_processor: remove buggy line of ancient, deprecated code
|
75
|
-
- Package#upload_master_file: move autoupdate to appropriate location
|
76
|
-
|
77
|
-
## v0.5.6 2014-11-04
|
78
|
-
|
79
|
-
- now requires Ruby >= 1.9.3 and rest-client >= 1.7.0. Needed for Casper >= 9.61's lack of support for SSLv3.
|
80
|
-
- APIConnection now accepts :ssl_version option in the argument hash. Defaults to 'TLSv1'
|
81
|
-
- Configuration now supports the api_ssl_version key, used for the :ssl_version option of the APIConnection.
|
82
|
-
- the example programs have been moved to the bin directory, and are now included in the gem installation.
|
83
|
-
- many documentation updates as we adjust to being live
|
84
|
-
- minor bugfixes
|
85
|
-
|
86
|
-
## v0.5.0 2014-10-23
|
87
|
-
|
88
|
-
- first opensource release
|