tsumanne 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.dockerignore +8 -0
- data/.mdlrc +6 -0
- data/.rubocop.yml +20 -12
- data/Dockerfile +24 -0
- data/README.md +0 -4
- data/Rakefile +19 -16
- data/exe/tsumanne +2 -1
- data/lib/tsumanne/api.rb +22 -21
- data/lib/tsumanne/cli.rb +153 -2
- data/lib/tsumanne/models/get_threads.rb +8 -3
- data/lib/tsumanne/models/register_thread.rb +5 -1
- data/lib/tsumanne/models/search_indexes.rb +7 -2
- data/lib/tsumanne/models/search_thread_from_uri.rb +14 -2
- data/lib/tsumanne/version.rb +1 -1
- data/mise.toml +42 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/{ast@2.4.2.rbi → ast@2.4.3.rbi} +45 -79
- data/sorbet/rbi/gems/benchmark@0.5.0.rbi +621 -0
- data/sorbet/rbi/gems/{chef-utils@18.2.7.rbi → chef-utils@18.8.54.rbi} +1 -0
- data/sorbet/rbi/gems/{concurrent-ruby@1.2.2.rbi → concurrent-ruby@1.3.5.rbi} +1 -0
- data/sorbet/rbi/gems/{diff-lcs@1.5.0.rbi → diff-lcs@1.6.2.rbi} +183 -199
- data/sorbet/rbi/gems/docile@1.4.0.rbi +147 -147
- data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.1.rbi} +36 -26
- data/sorbet/rbi/gems/{json@2.6.3.rbi → json@2.19.4.rbi} +920 -251
- data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +32 -63
- data/sorbet/rbi/gems/{kramdown@2.4.0.rbi → kramdown@2.5.1.rbi} +896 -711
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.5.rbi +9 -0
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +189 -0
- data/sorbet/rbi/gems/logger@1.7.0.rbi +896 -0
- data/sorbet/rbi/gems/{mdl@0.12.0.rbi → mdl@0.15.0.rbi} +109 -113
- data/sorbet/rbi/gems/mixlib-cli@2.1.8.rbi +35 -41
- data/sorbet/rbi/gems/mixlib-config@3.0.27.rbi +147 -142
- data/sorbet/rbi/gems/{mixlib-shellout@3.2.7.rbi → mixlib-shellout@3.3.9.rbi} +127 -150
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +45 -56
- data/sorbet/rbi/gems/optimist@3.2.1.rbi +895 -0
- data/sorbet/rbi/gems/parallel@1.28.0.rbi +270 -0
- data/sorbet/rbi/gems/parser@3.3.11.1.rbi +5229 -0
- data/sorbet/rbi/gems/prism@1.9.0.rbi +42224 -0
- data/sorbet/rbi/gems/{racc@1.7.1.rbi → racc@1.8.1.rbi} +48 -44
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +101 -141
- data/sorbet/rbi/gems/{rake@13.0.6.rbi → rake@13.4.2.rbi} +867 -761
- data/sorbet/rbi/gems/rbi@0.3.10.rbi +5520 -0
- data/sorbet/rbi/gems/rbs@4.0.2.rbi +6908 -0
- data/sorbet/rbi/gems/regexp_parser@2.12.0.rbi +3398 -0
- data/sorbet/rbi/gems/require-hooks@0.4.0.rbi +152 -0
- data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.4.4.rbi} +1032 -908
- data/sorbet/rbi/gems/{rspec-core@3.12.2.rbi → rspec-core@3.13.6.rbi} +2860 -4206
- data/sorbet/rbi/gems/rspec-expectations@3.13.5.rbi +6108 -0
- data/sorbet/rbi/gems/{rspec-mocks@3.12.6.rbi → rspec-mocks@3.13.7.rbi} +1264 -1787
- data/sorbet/rbi/gems/rspec-support@3.13.6.rbi +1274 -0
- data/sorbet/rbi/gems/rspec@3.13.2.rbi +15 -0
- data/sorbet/rbi/gems/rubocop-ast@1.49.1.rbi +7212 -0
- data/sorbet/rbi/gems/rubocop-performance@1.26.1.rbi +3403 -0
- data/sorbet/rbi/gems/{rubocop-rake@0.6.0.rbi → rubocop-rake@0.7.1.rbi} +89 -103
- data/sorbet/rbi/gems/rubocop-rspec@3.9.0.rbi +7606 -0
- data/sorbet/rbi/gems/rubocop-sorbet@0.12.0.rbi +2448 -0
- data/sorbet/rbi/gems/rubocop@1.86.1.rbi +62232 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +326 -655
- data/sorbet/rbi/gems/rubydex@0.1.0.beta14.rbi +655 -0
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +24 -158
- data/sorbet/rbi/gems/simplecov@0.22.0.rbi +450 -606
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +32 -166
- data/sorbet/rbi/gems/spoom@1.7.13.rbi +6151 -0
- data/sorbet/rbi/gems/{tapioca@0.11.8.rbi → tapioca@0.19.1.rbi} +1609 -1379
- data/sorbet/rbi/gems/{thor@1.2.2.rbi → thor@1.5.0.rbi} +1075 -1170
- data/sorbet/rbi/gems/tomlrb@2.0.3.rbi +1 -0
- data/sorbet/rbi/gems/tsort@0.2.0.rbi +389 -0
- data/sorbet/rbi/gems/unicode-display_width@3.2.0.rbi +130 -0
- data/sorbet/rbi/gems/unicode-emoji@4.2.0.rbi +332 -0
- metadata +69 -66
- data/.ruby-version +0 -1
- data/sorbet/rbi/gems/base64@0.1.1.rbi +0 -172
- data/sorbet/rbi/gems/ffi-compiler@1.0.1.rbi +0 -206
- data/sorbet/rbi/gems/ffi@1.15.5.rbi +0 -1994
- data/sorbet/rbi/gems/http-parser@1.2.3.rbi +0 -422
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +0 -14237
- data/sorbet/rbi/gems/mhtml@0.1.6.rbi +0 -353
- data/sorbet/rbi/gems/parallel@1.23.0.rbi +0 -273
- data/sorbet/rbi/gems/parser@3.2.2.3.rbi +0 -7253
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
- data/sorbet/rbi/gems/rbi@0.0.17.rbi +0 -2967
- data/sorbet/rbi/gems/regexp_parser@2.8.1.rbi +0 -3749
- data/sorbet/rbi/gems/rspec-expectations@3.12.3.rbi +0 -8100
- data/sorbet/rbi/gems/rspec-support@3.12.1.rbi +0 -1609
- data/sorbet/rbi/gems/rspec@3.12.0.rbi +0 -82
- data/sorbet/rbi/gems/rubocop-ast@1.29.0.rbi +0 -7144
- data/sorbet/rbi/gems/rubocop-capybara@2.18.0.rbi +0 -827
- data/sorbet/rbi/gems/rubocop-factory_bot@2.23.1.rbi +0 -812
- data/sorbet/rbi/gems/rubocop-performance@1.19.0.rbi +0 -3157
- data/sorbet/rbi/gems/rubocop-rspec@2.23.2.rbi +0 -7691
- data/sorbet/rbi/gems/rubocop-sorbet@0.7.3.rbi +0 -1226
- data/sorbet/rbi/gems/rubocop@1.56.2.rbi +0 -56541
- data/sorbet/rbi/gems/spoom@1.2.3.rbi +0 -3199
- data/sorbet/rbi/gems/syntax_tree@6.1.1.rbi +0 -22855
- data/sorbet/rbi/gems/unicode-display_width@2.4.2.rbi +0 -65
- data/sorbet/rbi/gems/unparser@0.6.8.rbi +0 -4525
- data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +0 -425
- data/sorbet/rbi/gems/yard@0.9.34.rbi +0 -18219
|
@@ -4,10 +4,95 @@
|
|
|
4
4
|
# This is an autogenerated file for types exported from the `mixlib-config` gem.
|
|
5
5
|
# Please instead update this file by running `bin/tapioca gem mixlib-config`.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
# Author:: John Keiser (<jkeiser@chef.io>)
|
|
9
|
+
# Copyright:: Copyright (c) 2013-2018, Chef Software Inc.
|
|
10
|
+
# License:: Apache License, Version 2.0
|
|
11
|
+
#
|
|
12
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
|
+
# you may not use this file except in compliance with the License.
|
|
14
|
+
# You may obtain a copy of the License at
|
|
15
|
+
#
|
|
16
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
+
#
|
|
18
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
19
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
20
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
+
# See the License for the specific language governing permissions and
|
|
22
|
+
# limitations under the License.
|
|
23
|
+
#
|
|
24
|
+
#
|
|
25
|
+
# Author:: John Keiser (<jkeiser@chef.io>)
|
|
26
|
+
# Copyright:: Copyright (c) 2013-2016 Chef Software, Inc.
|
|
27
|
+
# License:: Apache License, Version 2.0
|
|
28
|
+
#
|
|
29
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
30
|
+
# you may not use this file except in compliance with the License.
|
|
31
|
+
# You may obtain a copy of the License at
|
|
32
|
+
#
|
|
33
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
34
|
+
#
|
|
35
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
36
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
37
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
38
|
+
# See the License for the specific language governing permissions and
|
|
39
|
+
# limitations under the License.
|
|
40
|
+
#
|
|
41
|
+
#
|
|
42
|
+
# Author:: John Keiser (<jkeiser@chef.io>)
|
|
43
|
+
# Copyright:: Copyright (c) 2013-2016 Chef Software, Inc.
|
|
44
|
+
# License:: Apache License, Version 2.0
|
|
45
|
+
#
|
|
46
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
47
|
+
# you may not use this file except in compliance with the License.
|
|
48
|
+
# You may obtain a copy of the License at
|
|
49
|
+
#
|
|
50
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
51
|
+
#
|
|
52
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
53
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
54
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
55
|
+
# See the License for the specific language governing permissions and
|
|
56
|
+
# limitations under the License.
|
|
57
|
+
#
|
|
58
|
+
#
|
|
59
|
+
# Author:: John Keiser (<jkeiser@chef.io>)
|
|
60
|
+
# Copyright:: Copyright (c) 2013-2016 Chef Software, Inc.
|
|
61
|
+
# License:: Apache License, Version 2.0
|
|
62
|
+
#
|
|
63
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
64
|
+
# you may not use this file except in compliance with the License.
|
|
65
|
+
# You may obtain a copy of the License at
|
|
66
|
+
#
|
|
67
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
68
|
+
#
|
|
69
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
70
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
71
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
72
|
+
# See the License for the specific language governing permissions and
|
|
73
|
+
# limitations under the License.
|
|
74
|
+
#
|
|
75
|
+
#
|
|
76
|
+
# Author:: Daniel DeLeo (<dan@chef.io>)
|
|
77
|
+
# Copyright:: Copyright (c) 2013-2018, Chef Software Inc.
|
|
78
|
+
# License:: Apache License, Version 2.0
|
|
79
|
+
#
|
|
80
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
81
|
+
# you may not use this file except in compliance with the License.
|
|
82
|
+
# You may obtain a copy of the License at
|
|
83
|
+
#
|
|
84
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
85
|
+
#
|
|
86
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
87
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
88
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
89
|
+
# See the License for the specific language governing permissions and
|
|
90
|
+
# limitations under the License.
|
|
91
|
+
#
|
|
92
|
+
# pkg:gem/mixlib-config#lib/mixlib/config/version.rb:19
|
|
8
93
|
module Mixlib; end
|
|
9
94
|
|
|
10
|
-
#
|
|
95
|
+
# pkg:gem/mixlib-config#lib/mixlib/config/version.rb:20
|
|
11
96
|
module Mixlib::Config
|
|
12
97
|
# Get the value of a config option
|
|
13
98
|
#
|
|
@@ -20,7 +105,7 @@ module Mixlib::Config
|
|
|
20
105
|
# === Raises
|
|
21
106
|
# <UnknownConfigOptionError>:: If the config option does not exist and strict mode is on.
|
|
22
107
|
#
|
|
23
|
-
#
|
|
108
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:116
|
|
24
109
|
def [](config_option); end
|
|
25
110
|
|
|
26
111
|
# Set the value of a config option
|
|
@@ -35,7 +120,7 @@ module Mixlib::Config
|
|
|
35
120
|
# === Raises
|
|
36
121
|
# <UnknownConfigOptionError>:: If the config option does not exist and strict mode is on.
|
|
37
122
|
#
|
|
38
|
-
#
|
|
123
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:131
|
|
39
124
|
def []=(config_option, value); end
|
|
40
125
|
|
|
41
126
|
# metaprogramming to ensure that the slot for method_symbol
|
|
@@ -46,7 +131,7 @@ module Mixlib::Config
|
|
|
46
131
|
# blk<Block>:: logic block to run in setting slot method_symbol to value
|
|
47
132
|
# value<Object>:: Value to be set in config hash
|
|
48
133
|
#
|
|
49
|
-
#
|
|
134
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:331
|
|
50
135
|
def config_attr_writer(method_symbol, &block); end
|
|
51
136
|
|
|
52
137
|
# Allows you to create a new config context where you can define new
|
|
@@ -65,7 +150,7 @@ module Mixlib::Config
|
|
|
65
150
|
# block<Block>: a block that will be run in the context of this new config
|
|
66
151
|
# class.
|
|
67
152
|
#
|
|
68
|
-
#
|
|
153
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:400
|
|
69
154
|
def config_context(symbol, &block); end
|
|
70
155
|
|
|
71
156
|
# Allows you to create a new hash of config contexts where you can define new
|
|
@@ -85,7 +170,7 @@ module Mixlib::Config
|
|
|
85
170
|
# block<Block>: a block that will be run in the context of this new config
|
|
86
171
|
# class.
|
|
87
172
|
#
|
|
88
|
-
#
|
|
173
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:470
|
|
89
174
|
def config_context_hash(plural_symbol, singular_symbol, &block); end
|
|
90
175
|
|
|
91
176
|
# Allows you to create a new list of config contexts where you can define new
|
|
@@ -105,7 +190,7 @@ module Mixlib::Config
|
|
|
105
190
|
# block<Block>: a block that will be run in the context of this new config
|
|
106
191
|
# class.
|
|
107
192
|
#
|
|
108
|
-
#
|
|
193
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:438
|
|
109
194
|
def config_context_list(plural_symbol, singular_symbol, &block); end
|
|
110
195
|
|
|
111
196
|
# Gets or sets strict mode. When strict mode is on, only values which
|
|
@@ -125,7 +210,7 @@ module Mixlib::Config
|
|
|
125
210
|
# === Raises
|
|
126
211
|
# <ArgumentError>:: if value is set to something other than true, false, or :warn
|
|
127
212
|
#
|
|
128
|
-
#
|
|
213
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:505
|
|
129
214
|
def config_strict_mode(value = T.unsafe(nil)); end
|
|
130
215
|
|
|
131
216
|
# Sets strict mode. When strict mode is on, only values which
|
|
@@ -141,7 +226,7 @@ module Mixlib::Config
|
|
|
141
226
|
# === Raises
|
|
142
227
|
# <ArgumentError>:: if value is set to something other than true, false, or :warn
|
|
143
228
|
#
|
|
144
|
-
#
|
|
229
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:534
|
|
145
230
|
def config_strict_mode=(value); end
|
|
146
231
|
|
|
147
232
|
# metaprogramming to set information about a config option. This may be
|
|
@@ -170,7 +255,7 @@ module Mixlib::Config
|
|
|
170
255
|
# === Returns
|
|
171
256
|
# The value of the config option.
|
|
172
257
|
#
|
|
173
|
-
#
|
|
258
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:370
|
|
174
259
|
def configurable(symbol, &block); end
|
|
175
260
|
|
|
176
261
|
# Pass Mixlib::Config.configure() a block, and it will yield itself
|
|
@@ -178,9 +263,7 @@ module Mixlib::Config
|
|
|
178
263
|
# === Parameters
|
|
179
264
|
# block<Block>:: A block that is called with self.configuration as the argument.
|
|
180
265
|
#
|
|
181
|
-
#
|
|
182
|
-
#
|
|
183
|
-
# source://mixlib-config//lib/mixlib/config.rb#102
|
|
266
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:102
|
|
184
267
|
def configure(&block); end
|
|
185
268
|
|
|
186
269
|
# metaprogramming to set the default value for the given config option
|
|
@@ -190,7 +273,7 @@ module Mixlib::Config
|
|
|
190
273
|
# default_value<Object>:: Default value (can be unspecified)
|
|
191
274
|
# block<Block>:: Logic block that calculates default value
|
|
192
275
|
#
|
|
193
|
-
#
|
|
276
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:341
|
|
194
277
|
def default(symbol, default_value = T.unsafe(nil), &block); end
|
|
195
278
|
|
|
196
279
|
# Resets a config option to its default.
|
|
@@ -198,7 +281,7 @@ module Mixlib::Config
|
|
|
198
281
|
# === Parameters
|
|
199
282
|
# symbol<Symbol>:: Name of the config option
|
|
200
283
|
#
|
|
201
|
-
#
|
|
284
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:162
|
|
202
285
|
def delete(symbol); end
|
|
203
286
|
|
|
204
287
|
# Loads a given ruby file, and runs instance_eval against it in the context of the current
|
|
@@ -209,7 +292,7 @@ module Mixlib::Config
|
|
|
209
292
|
# === Parameters
|
|
210
293
|
# filename<String>:: A filename to read from
|
|
211
294
|
#
|
|
212
|
-
#
|
|
295
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:55
|
|
213
296
|
def from_file(filename); end
|
|
214
297
|
|
|
215
298
|
# Transforms a Hash into method-style configuration syntax to be processed
|
|
@@ -217,7 +300,7 @@ module Mixlib::Config
|
|
|
217
300
|
# === Parameters
|
|
218
301
|
# hash<Hash>:: A Hash containing configuration
|
|
219
302
|
#
|
|
220
|
-
#
|
|
303
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:94
|
|
221
304
|
def from_hash(hash); end
|
|
222
305
|
|
|
223
306
|
# Parses valid JSON structure into Ruby
|
|
@@ -225,10 +308,10 @@ module Mixlib::Config
|
|
|
225
308
|
# === Parameters
|
|
226
309
|
# filename<String>:: A filename to read from
|
|
227
310
|
#
|
|
228
|
-
#
|
|
311
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:80
|
|
229
312
|
def from_json(filename); end
|
|
230
313
|
|
|
231
|
-
#
|
|
314
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:85
|
|
232
315
|
def from_toml(filename); end
|
|
233
316
|
|
|
234
317
|
# Parses valid YAML structure into Ruby so it can be ingested into the Class
|
|
@@ -236,21 +319,10 @@ module Mixlib::Config
|
|
|
236
319
|
# === Parameters
|
|
237
320
|
# filename<String>:: A filename to read from
|
|
238
321
|
#
|
|
239
|
-
#
|
|
322
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:71
|
|
240
323
|
def from_yaml(filename); end
|
|
241
324
|
|
|
242
|
-
#
|
|
243
|
-
#
|
|
244
|
-
# === Parameters
|
|
245
|
-
# key<Symbol>:: The config option to check for
|
|
246
|
-
#
|
|
247
|
-
# === Returns
|
|
248
|
-
# <True>:: If the config option exists
|
|
249
|
-
# <False>:: If the config option does not exist
|
|
250
|
-
#
|
|
251
|
-
# @return [Boolean]
|
|
252
|
-
#
|
|
253
|
-
# source://mixlib-config//lib/mixlib/config.rb#143
|
|
325
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:147
|
|
254
326
|
def has_key?(key); end
|
|
255
327
|
|
|
256
328
|
# Creates a shallow copy of the internal hash
|
|
@@ -260,15 +332,13 @@ module Mixlib::Config
|
|
|
260
332
|
# === Returns
|
|
261
333
|
# result of Hash#dup
|
|
262
334
|
#
|
|
263
|
-
#
|
|
335
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:319
|
|
264
336
|
def hash_dup; end
|
|
265
337
|
|
|
266
|
-
#
|
|
338
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:44
|
|
267
339
|
def initialize_mixlib_config; end
|
|
268
340
|
|
|
269
|
-
#
|
|
270
|
-
#
|
|
271
|
-
# source://mixlib-config//lib/mixlib/config.rb#149
|
|
341
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:149
|
|
272
342
|
def is_default?(key); end
|
|
273
343
|
|
|
274
344
|
# Check if Mixlib::Config has a config option.
|
|
@@ -280,9 +350,7 @@ module Mixlib::Config
|
|
|
280
350
|
# <True>:: If the config option exists
|
|
281
351
|
# <False>:: If the config option does not exist
|
|
282
352
|
#
|
|
283
|
-
#
|
|
284
|
-
#
|
|
285
|
-
# source://mixlib-config//lib/mixlib/config.rb#143
|
|
353
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:143
|
|
286
354
|
def key?(key); end
|
|
287
355
|
|
|
288
356
|
# Return the set of config hash keys.
|
|
@@ -293,7 +361,7 @@ module Mixlib::Config
|
|
|
293
361
|
# === Returns
|
|
294
362
|
# result of Hash#keys
|
|
295
363
|
#
|
|
296
|
-
#
|
|
364
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:309
|
|
297
365
|
def keys; end
|
|
298
366
|
|
|
299
367
|
# Merge an incoming hash with our config options
|
|
@@ -304,7 +372,7 @@ module Mixlib::Config
|
|
|
304
372
|
# === Returns
|
|
305
373
|
# self
|
|
306
374
|
#
|
|
307
|
-
#
|
|
375
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:290
|
|
308
376
|
def merge!(hash); end
|
|
309
377
|
|
|
310
378
|
# Allows for simple lookups and setting of config options via method calls
|
|
@@ -321,12 +389,12 @@ module Mixlib::Config
|
|
|
321
389
|
# === Raises
|
|
322
390
|
# <UnknownConfigOptionError>:: If the config option does not exist and strict mode is on.
|
|
323
391
|
#
|
|
324
|
-
#
|
|
392
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:555
|
|
325
393
|
def method_missing(method_symbol, *args); end
|
|
326
394
|
|
|
327
395
|
# Resets all config options to their defaults.
|
|
328
396
|
#
|
|
329
|
-
#
|
|
397
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:167
|
|
330
398
|
def reset; end
|
|
331
399
|
|
|
332
400
|
# Restore non-default values from the given hash.
|
|
@@ -337,7 +405,7 @@ module Mixlib::Config
|
|
|
337
405
|
# === Returns
|
|
338
406
|
# self
|
|
339
407
|
#
|
|
340
|
-
#
|
|
408
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:252
|
|
341
409
|
def restore(hash); end
|
|
342
410
|
|
|
343
411
|
# Makes a copy of any non-default values.
|
|
@@ -383,53 +451,10 @@ module Mixlib::Config
|
|
|
383
451
|
# }
|
|
384
452
|
# }
|
|
385
453
|
#
|
|
386
|
-
#
|
|
454
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:215
|
|
387
455
|
def save(include_defaults = T.unsafe(nil)); end
|
|
388
456
|
|
|
389
|
-
#
|
|
390
|
-
#
|
|
391
|
-
# This returns a shallow copy of the hash; while the hash itself is
|
|
392
|
-
# duplicated a la dup, modifying data inside arrays and hashes may modify
|
|
393
|
-
# the original Config object.
|
|
394
|
-
#
|
|
395
|
-
# === Returns
|
|
396
|
-
#
|
|
397
|
-
# Hash of values the user has set.
|
|
398
|
-
#
|
|
399
|
-
# === Examples
|
|
400
|
-
#
|
|
401
|
-
# For example, this config class:
|
|
402
|
-
#
|
|
403
|
-
# class MyConfig < Mixlib::Config
|
|
404
|
-
# default :will_be_set, 1
|
|
405
|
-
# default :will_be_set_to_default, 1
|
|
406
|
-
# default :will_not_be_set, 1
|
|
407
|
-
# configurable(:computed_value) { |x| x*2 }
|
|
408
|
-
# config_context :group do
|
|
409
|
-
# default :will_not_be_set, 1
|
|
410
|
-
# end
|
|
411
|
-
# config_context :group_never_set
|
|
412
|
-
# end
|
|
413
|
-
#
|
|
414
|
-
# MyConfig.x = 2
|
|
415
|
-
# MyConfig.will_be_set = 2
|
|
416
|
-
# MyConfig.will_be_set_to_default = 1
|
|
417
|
-
# MyConfig.computed_value = 2
|
|
418
|
-
# MyConfig.group.x = 3
|
|
419
|
-
#
|
|
420
|
-
# produces this:
|
|
421
|
-
#
|
|
422
|
-
# MyConfig.save == {
|
|
423
|
-
# :x => 2,
|
|
424
|
-
# :will_be_set => 2,
|
|
425
|
-
# :will_be_set_to_default => 1,
|
|
426
|
-
# :computed_value => 4,
|
|
427
|
-
# :group => {
|
|
428
|
-
# :x => 3
|
|
429
|
-
# }
|
|
430
|
-
# }
|
|
431
|
-
#
|
|
432
|
-
# source://mixlib-config//lib/mixlib/config.rb#215
|
|
457
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:243
|
|
433
458
|
def to_hash(include_defaults = T.unsafe(nil)); end
|
|
434
459
|
|
|
435
460
|
protected
|
|
@@ -442,27 +467,27 @@ module Mixlib::Config
|
|
|
442
467
|
# === Parameters
|
|
443
468
|
# hash<Hash>:: The hash to apply to the config object
|
|
444
469
|
#
|
|
445
|
-
#
|
|
470
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:569
|
|
446
471
|
def apply_nested_hash(hash); end
|
|
447
472
|
|
|
448
473
|
private
|
|
449
474
|
|
|
450
|
-
#
|
|
475
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:659
|
|
451
476
|
def define_attr_accessor_methods(symbol); end
|
|
452
477
|
|
|
453
|
-
#
|
|
478
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:729
|
|
454
479
|
def define_context(definition_blocks); end
|
|
455
480
|
|
|
456
|
-
#
|
|
481
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:703
|
|
457
482
|
def define_hash_attr_accessor_methods(plural_symbol, singular_symbol); end
|
|
458
483
|
|
|
459
|
-
#
|
|
484
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:682
|
|
460
485
|
def define_list_attr_accessor_methods(plural_symbol, singular_symbol); end
|
|
461
486
|
|
|
462
|
-
#
|
|
487
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:629
|
|
463
488
|
def internal_get(symbol); end
|
|
464
489
|
|
|
465
|
-
#
|
|
490
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:648
|
|
466
491
|
def internal_get_or_set(symbol, *args); end
|
|
467
492
|
|
|
468
493
|
# Internal dispatch setter for config values.
|
|
@@ -471,7 +496,7 @@ module Mixlib::Config
|
|
|
471
496
|
# symbol<Symbol>:: Name of the method (variable setter)
|
|
472
497
|
# value<Object>:: Value to be set in config hash
|
|
473
498
|
#
|
|
474
|
-
#
|
|
499
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:614
|
|
475
500
|
def internal_set(symbol, value); end
|
|
476
501
|
|
|
477
502
|
# Given a (nested) Hash, turn it into a single top-level hash using dots as
|
|
@@ -485,96 +510,76 @@ module Mixlib::Config
|
|
|
485
510
|
# === Returns
|
|
486
511
|
# value:: A single-depth Hash using dot notation to indicate nesting
|
|
487
512
|
#
|
|
488
|
-
#
|
|
513
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:597
|
|
489
514
|
def to_dotted_hash(hash, recursive_key = T.unsafe(nil)); end
|
|
490
515
|
|
|
491
516
|
class << self
|
|
492
|
-
#
|
|
493
|
-
#
|
|
494
|
-
# source://mixlib-config//lib/mixlib/config.rb#29
|
|
517
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:29
|
|
495
518
|
def extended(base); end
|
|
496
519
|
end
|
|
497
520
|
end
|
|
498
521
|
|
|
499
|
-
#
|
|
522
|
+
# pkg:gem/mixlib-config#lib/mixlib/config/configurable.rb:21
|
|
500
523
|
class Mixlib::Config::Configurable
|
|
501
|
-
#
|
|
502
|
-
#
|
|
503
|
-
# source://mixlib-config//lib/mixlib/config/configurable.rb#26
|
|
524
|
+
# pkg:gem/mixlib-config#lib/mixlib/config/configurable.rb:26
|
|
504
525
|
def initialize(symbol); end
|
|
505
526
|
|
|
506
|
-
#
|
|
527
|
+
# pkg:gem/mixlib-config#lib/mixlib/config/configurable.rb:69
|
|
507
528
|
def default; end
|
|
508
529
|
|
|
509
|
-
#
|
|
510
|
-
#
|
|
511
|
-
# source://mixlib-config//lib/mixlib/config/configurable.rb#24
|
|
530
|
+
# pkg:gem/mixlib-config#lib/mixlib/config/configurable.rb:24
|
|
512
531
|
def default_block; end
|
|
513
532
|
|
|
514
|
-
#
|
|
515
|
-
#
|
|
516
|
-
# source://mixlib-config//lib/mixlib/config/configurable.rb#38
|
|
533
|
+
# pkg:gem/mixlib-config#lib/mixlib/config/configurable.rb:38
|
|
517
534
|
def default_block?; end
|
|
518
535
|
|
|
519
|
-
#
|
|
520
|
-
#
|
|
521
|
-
# source://mixlib-config//lib/mixlib/config/configurable.rb#23
|
|
536
|
+
# pkg:gem/mixlib-config#lib/mixlib/config/configurable.rb:23
|
|
522
537
|
def default_value; end
|
|
523
538
|
|
|
524
|
-
#
|
|
539
|
+
# pkg:gem/mixlib-config#lib/mixlib/config/configurable.rb:44
|
|
525
540
|
def defaults_to(default_value = T.unsafe(nil), &block); end
|
|
526
541
|
|
|
527
|
-
#
|
|
542
|
+
# pkg:gem/mixlib-config#lib/mixlib/config/configurable.rb:55
|
|
528
543
|
def get(config); end
|
|
529
544
|
|
|
530
|
-
#
|
|
531
|
-
#
|
|
532
|
-
# source://mixlib-config//lib/mixlib/config/configurable.rb#30
|
|
545
|
+
# pkg:gem/mixlib-config#lib/mixlib/config/configurable.rb:42
|
|
533
546
|
def has_default; end
|
|
534
547
|
|
|
535
|
-
#
|
|
536
|
-
#
|
|
537
|
-
# source://mixlib-config//lib/mixlib/config/configurable.rb#30
|
|
548
|
+
# pkg:gem/mixlib-config#lib/mixlib/config/configurable.rb:30
|
|
538
549
|
def has_default?; end
|
|
539
550
|
|
|
540
|
-
#
|
|
541
|
-
#
|
|
542
|
-
# source://mixlib-config//lib/mixlib/config/configurable.rb#77
|
|
551
|
+
# pkg:gem/mixlib-config#lib/mixlib/config/configurable.rb:77
|
|
543
552
|
def is_default?(config); end
|
|
544
553
|
|
|
545
|
-
#
|
|
554
|
+
# pkg:gem/mixlib-config#lib/mixlib/config/configurable.rb:65
|
|
546
555
|
def set(config, value); end
|
|
547
556
|
|
|
548
|
-
#
|
|
549
|
-
#
|
|
550
|
-
# source://mixlib-config//lib/mixlib/config/configurable.rb#22
|
|
557
|
+
# pkg:gem/mixlib-config#lib/mixlib/config/configurable.rb:22
|
|
551
558
|
def symbol; end
|
|
552
559
|
|
|
553
|
-
#
|
|
560
|
+
# pkg:gem/mixlib-config#lib/mixlib/config/configurable.rb:50
|
|
554
561
|
def writes_value(&block); end
|
|
555
562
|
|
|
556
|
-
#
|
|
557
|
-
#
|
|
558
|
-
# source://mixlib-config//lib/mixlib/config/configurable.rb#34
|
|
563
|
+
# pkg:gem/mixlib-config#lib/mixlib/config/configurable.rb:34
|
|
559
564
|
def writes_value?; end
|
|
560
565
|
|
|
561
566
|
private
|
|
562
567
|
|
|
563
|
-
#
|
|
568
|
+
# pkg:gem/mixlib-config#lib/mixlib/config/configurable.rb:83
|
|
564
569
|
def safe_dup(e); end
|
|
565
570
|
end
|
|
566
571
|
|
|
567
|
-
#
|
|
572
|
+
# pkg:gem/mixlib-config#lib/mixlib/config.rb:486
|
|
568
573
|
Mixlib::Config::NOT_PASSED = T.let(T.unsafe(nil), Object)
|
|
569
574
|
|
|
570
|
-
#
|
|
575
|
+
# pkg:gem/mixlib-config#lib/mixlib/config/reopened_config_context_with_configurable_error.rb:21
|
|
571
576
|
class Mixlib::Config::ReopenedConfigContextWithConfigurableError < ::StandardError; end
|
|
572
577
|
|
|
573
|
-
#
|
|
578
|
+
# pkg:gem/mixlib-config#lib/mixlib/config/reopened_configurable_with_config_context_error.rb:21
|
|
574
579
|
class Mixlib::Config::ReopenedConfigurableWithConfigContextError < ::StandardError; end
|
|
575
580
|
|
|
576
|
-
#
|
|
581
|
+
# pkg:gem/mixlib-config#lib/mixlib/config/unknown_config_option_error.rb:21
|
|
577
582
|
class Mixlib::Config::UnknownConfigOptionError < ::StandardError; end
|
|
578
583
|
|
|
579
|
-
#
|
|
584
|
+
# pkg:gem/mixlib-config#lib/mixlib/config/version.rb:22
|
|
580
585
|
Mixlib::Config::VERSION = T.let(T.unsafe(nil), String)
|