chef-api 0.9.0 → 0.10.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/lib/chef-api.rb +19 -20
  3. data/lib/chef-api/aclable.rb +35 -0
  4. data/lib/chef-api/authentication.rb +23 -25
  5. data/lib/chef-api/configurable.rb +14 -14
  6. data/lib/chef-api/connection.rb +69 -68
  7. data/lib/chef-api/defaults.rb +25 -24
  8. data/lib/chef-api/error_collection.rb +1 -1
  9. data/lib/chef-api/errors.rb +3 -3
  10. data/lib/chef-api/log.rb +7 -0
  11. data/lib/chef-api/multipart.rb +17 -17
  12. data/lib/chef-api/resource.rb +17 -15
  13. data/lib/chef-api/resources/base.rb +25 -23
  14. data/lib/chef-api/resources/client.rb +5 -3
  15. data/lib/chef-api/resources/collection_proxy.rb +4 -3
  16. data/lib/chef-api/resources/cookbook.rb +2 -2
  17. data/lib/chef-api/resources/cookbook_version.rb +1 -1
  18. data/lib/chef-api/resources/data_bag.rb +4 -4
  19. data/lib/chef-api/resources/data_bag_item.rb +2 -3
  20. data/lib/chef-api/resources/environment.rb +1 -1
  21. data/lib/chef-api/resources/group.rb +15 -0
  22. data/lib/chef-api/resources/node.rb +11 -8
  23. data/lib/chef-api/resources/organization.rb +2 -2
  24. data/lib/chef-api/resources/partial_search.rb +4 -4
  25. data/lib/chef-api/resources/principal.rb +1 -1
  26. data/lib/chef-api/resources/role.rb +2 -1
  27. data/lib/chef-api/resources/search.rb +6 -6
  28. data/lib/chef-api/resources/user.rb +5 -3
  29. data/lib/chef-api/util.rb +8 -8
  30. data/lib/chef-api/validator.rb +3 -3
  31. data/lib/chef-api/validators/base.rb +3 -3
  32. data/lib/chef-api/validators/required.rb +1 -1
  33. data/lib/chef-api/validators/type.rb +1 -1
  34. data/lib/chef-api/version.rb +1 -1
  35. data/templates/errors/abstract_method.erb +5 -0
  36. data/templates/errors/cannot_regenerate_key.erb +1 -0
  37. data/templates/errors/chef_api_error.erb +1 -0
  38. data/templates/errors/file_not_found.erb +1 -0
  39. data/templates/errors/http_bad_request.erb +3 -0
  40. data/templates/errors/http_forbidden_request.erb +3 -0
  41. data/templates/errors/http_gateway_timeout.erb +3 -0
  42. data/templates/errors/http_method_not_allowed.erb +3 -0
  43. data/templates/errors/http_not_acceptable.erb +3 -0
  44. data/templates/errors/http_not_found.erb +3 -0
  45. data/templates/errors/http_server_unavailable.erb +1 -0
  46. data/templates/errors/http_unauthorized_request.erb +3 -0
  47. data/templates/errors/insufficient_file_permissions.erb +1 -0
  48. data/templates/errors/invalid_resource.erb +1 -0
  49. data/templates/errors/invalid_validator.erb +1 -0
  50. data/templates/errors/missing_url_parameter.erb +1 -0
  51. data/templates/errors/not_a_directory.erb +1 -0
  52. data/templates/errors/resource_already_exists.erb +1 -0
  53. data/templates/errors/resource_not_found.erb +1 -0
  54. data/templates/errors/resource_not_mutable.erb +1 -0
  55. data/templates/errors/unknown_attribute.erb +1 -0
  56. metadata +44 -13
@@ -0,0 +1 @@
1
+ I could not find a file at '<%= @path %>'. Please make sure you have typed the path correctly and that the resource exists at the given path.
@@ -0,0 +1,3 @@
1
+ The Chef Server did not understand the request because it was malformed.
2
+
3
+ <%= @message %>
@@ -0,0 +1,3 @@
1
+ The Chef Server actively refused to fulfill the request.
2
+
3
+ <%= @message %>
@@ -0,0 +1,3 @@
1
+ The Chef Server did not respond in an adequate amount of time.
2
+
3
+ <%= @message %>
@@ -0,0 +1,3 @@
1
+ That HTTP method is not allowed on this URL.
2
+
3
+ <%= @message %>
@@ -0,0 +1,3 @@
1
+ The Chef Server identified this request as unacceptable. This usually means you have not specified the correct Accept or Content-Type headers on the request.
2
+
3
+ <%= @message %>
@@ -0,0 +1,3 @@
1
+ The requested URL does not exist on the Chef Server.
2
+
3
+ <%= @message %>
@@ -0,0 +1 @@
1
+ The Chef Server is currently unavailable or is not currently accepting client connections. Please ensure the server is accessible via ping or telnet on your local network. If this error persists, please contact your network administrator.
@@ -0,0 +1,3 @@
1
+ The Chef Server requires authorization. Please ensure you have specified the correct client name and private key. If this error continues, please verify the given client has the proper permissions on the Chef Server.
2
+
3
+ <%= @message %>
@@ -0,0 +1 @@
1
+ I cannot read the file at '<%= @path %>' because the permissions on the file do not permit it. Please ensure the file has the correct permissions and that this Ruby process is running as a user with access to that path.
@@ -0,0 +1 @@
1
+ There were errors saving your resource: <%= @errors %>
@@ -0,0 +1 @@
1
+ '<%= @key %>' is not a valid validator. Please make sure it is spelled correctly and that the constant is properly defined. If you are using a custom validator, please ensure the validator extends ChefAPI::Validator::Base and is a subclass of ChefAPI::Validator.
@@ -0,0 +1 @@
1
+ The required URL parameter '<%= @param %>' was not present. Please specify the parameter as an option, like Resource.new(id, <%= @param %>: 'value').
@@ -0,0 +1 @@
1
+ The given path '<%= @path %>' is not a directory. Please make sure you have passed the path to a directory on disk.
@@ -0,0 +1 @@
1
+ The <%= @type %> '<%= @id %>' already exists on the Chef Server. Each <%= @type %> must have a unique identifier and the Chef Server indicated this <%= @type %> already exists. If you are trying to update the <%= @type %>, consider using the 'update' method instead.
@@ -0,0 +1 @@
1
+ There is no <%= @type %> with an id of '<%= @id %>' on the Chef Server. If you are updating the <%= @type %>, please make sure the <%= @type %> exists and has the correct Chef identifier (primary key).
@@ -0,0 +1 @@
1
+ The <%= @type %> '<%= @id %>' is not mutable. It may be locked by the remote Chef Server, or the Chef Server may not permit modifying the resource.
@@ -0,0 +1 @@
1
+ '<%= @attribute %>' is not a valid attribute!
metadata CHANGED
@@ -1,29 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Vargo
8
+ - Tim Smith
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2018-12-03 00:00:00.000000000 Z
12
+ date: 2020-08-21 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
- name: logify
15
+ name: mixlib-log
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
- - - "~>"
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '1'
21
+ - - "<"
18
22
  - !ruby/object:Gem::Version
19
- version: '0.1'
23
+ version: '4'
20
24
  type: :runtime
21
25
  prerelease: false
22
26
  version_requirements: !ruby/object:Gem::Requirement
23
27
  requirements:
24
- - - "~>"
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ version: '1'
31
+ - - "<"
25
32
  - !ruby/object:Gem::Version
26
- version: '0.1'
33
+ version: '4'
27
34
  - !ruby/object:Gem::Dependency
28
35
  name: mime-types
29
36
  requirement: !ruby/object:Gem::Requirement
@@ -38,15 +45,17 @@ dependencies:
38
45
  - - ">="
39
46
  - !ruby/object:Gem::Version
40
47
  version: '0'
41
- description: A tiny Chef API client with minimal dependencies
48
+ description: A tiny Chef Infra API client with minimal dependencies
42
49
  email:
43
50
  - sethvargo@gmail.com
51
+ - tsmith84@gmail.com
44
52
  executables: []
45
53
  extensions: []
46
54
  extra_rdoc_files: []
47
55
  files:
48
56
  - LICENSE
49
57
  - lib/chef-api.rb
58
+ - lib/chef-api/aclable.rb
50
59
  - lib/chef-api/authentication.rb
51
60
  - lib/chef-api/boolean.rb
52
61
  - lib/chef-api/configurable.rb
@@ -54,6 +63,7 @@ files:
54
63
  - lib/chef-api/defaults.rb
55
64
  - lib/chef-api/error_collection.rb
56
65
  - lib/chef-api/errors.rb
66
+ - lib/chef-api/log.rb
57
67
  - lib/chef-api/multipart.rb
58
68
  - lib/chef-api/resource.rb
59
69
  - lib/chef-api/resources/base.rb
@@ -64,6 +74,7 @@ files:
64
74
  - lib/chef-api/resources/data_bag.rb
65
75
  - lib/chef-api/resources/data_bag_item.rb
66
76
  - lib/chef-api/resources/environment.rb
77
+ - lib/chef-api/resources/group.rb
67
78
  - lib/chef-api/resources/node.rb
68
79
  - lib/chef-api/resources/organization.rb
69
80
  - lib/chef-api/resources/partial_search.rb
@@ -78,7 +89,28 @@ files:
78
89
  - lib/chef-api/validators/required.rb
79
90
  - lib/chef-api/validators/type.rb
80
91
  - lib/chef-api/version.rb
81
- homepage: https://github.com/sethvargo/chef-api
92
+ - templates/errors/abstract_method.erb
93
+ - templates/errors/cannot_regenerate_key.erb
94
+ - templates/errors/chef_api_error.erb
95
+ - templates/errors/file_not_found.erb
96
+ - templates/errors/http_bad_request.erb
97
+ - templates/errors/http_forbidden_request.erb
98
+ - templates/errors/http_gateway_timeout.erb
99
+ - templates/errors/http_method_not_allowed.erb
100
+ - templates/errors/http_not_acceptable.erb
101
+ - templates/errors/http_not_found.erb
102
+ - templates/errors/http_server_unavailable.erb
103
+ - templates/errors/http_unauthorized_request.erb
104
+ - templates/errors/insufficient_file_permissions.erb
105
+ - templates/errors/invalid_resource.erb
106
+ - templates/errors/invalid_validator.erb
107
+ - templates/errors/missing_url_parameter.erb
108
+ - templates/errors/not_a_directory.erb
109
+ - templates/errors/resource_already_exists.erb
110
+ - templates/errors/resource_not_found.erb
111
+ - templates/errors/resource_not_mutable.erb
112
+ - templates/errors/unknown_attribute.erb
113
+ homepage: https://github.com/chef/chef-api
82
114
  licenses:
83
115
  - Apache-2.0
84
116
  metadata: {}
@@ -90,16 +122,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
122
  requirements:
91
123
  - - ">="
92
124
  - !ruby/object:Gem::Version
93
- version: '2.2'
125
+ version: '2.3'
94
126
  required_rubygems_version: !ruby/object:Gem::Requirement
95
127
  requirements:
96
128
  - - ">="
97
129
  - !ruby/object:Gem::Version
98
130
  version: '0'
99
131
  requirements: []
100
- rubyforge_project:
101
- rubygems_version: 2.7.8
132
+ rubygems_version: 3.0.3
102
133
  signing_key:
103
134
  specification_version: 4
104
- summary: A Chef API client in Ruby
135
+ summary: A Chef Infra API client in Ruby
105
136
  test_files: []