data_plane_api 0.1.2 → 0.2.0

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.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +2 -2
  3. data/.ruby-version +1 -1
  4. data/CHANGELOG.md +6 -0
  5. data/Gemfile +6 -3
  6. data/Gemfile.lock +89 -60
  7. data/README.md +8 -1
  8. data/data_plane_api.gemspec +3 -1
  9. data/lib/data_plane_api/configuration.rb +51 -28
  10. data/lib/data_plane_api/server.rb +31 -36
  11. data/lib/data_plane_api/version.rb +1 -2
  12. data/lib/data_plane_api.rb +3 -3
  13. data/rbi/data_plane_api.rbi +135 -0
  14. data/sorbet/config +6 -0
  15. data/sorbet/rbi/annotations/.gitattributes +1 -0
  16. data/sorbet/rbi/annotations/faraday.rbi +17 -0
  17. data/sorbet/rbi/annotations/minitest.rbi +119 -0
  18. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  19. data/sorbet/rbi/annotations/webmock.rbi +9 -0
  20. data/sorbet/rbi/gems/.gitattributes +1 -0
  21. data/sorbet/rbi/gems/addressable@2.8.7.rbi +1994 -0
  22. data/sorbet/rbi/gems/ast@2.4.3.rbi +585 -0
  23. data/sorbet/rbi/gems/base64@0.2.0.rbi +509 -0
  24. data/sorbet/rbi/gems/bigdecimal@3.1.9.rbi +8 -0
  25. data/sorbet/rbi/gems/booleans@0.1.3.rbi +28 -0
  26. data/sorbet/rbi/gems/byebug@12.0.0.rbi +37 -0
  27. data/sorbet/rbi/gems/crack@1.0.0.rbi +145 -0
  28. data/sorbet/rbi/gems/faraday-net_http@3.0.2.rbi +147 -0
  29. data/sorbet/rbi/gems/faraday@2.7.2.rbi +2519 -0
  30. data/sorbet/rbi/gems/hashdiff@1.1.2.rbi +353 -0
  31. data/sorbet/rbi/gems/json@2.10.2.rbi +2112 -0
  32. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +86 -0
  33. data/sorbet/rbi/gems/minitest@5.25.5.rbi +1547 -0
  34. data/sorbet/rbi/gems/parallel@1.26.3.rbi +291 -0
  35. data/sorbet/rbi/gems/public_suffix@6.0.1.rbi +936 -0
  36. data/sorbet/rbi/gems/racc@1.8.1.rbi +160 -0
  37. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
  38. data/sorbet/rbi/gems/rake@13.0.6.rbi +3030 -0
  39. data/sorbet/rbi/gems/rexml@3.4.1.rbi +5346 -0
  40. data/sorbet/rbi/gems/rubocop-espago@1.1.8.rbi +9 -0
  41. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
  42. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +9 -0
  43. data/sorbet/rbi/gems/shoulda-context@2.0.0.rbi +563 -0
  44. data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
  45. data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
  46. data/sorbet/rbi/gems/vcr@6.3.1.rbi +3040 -0
  47. data/sorbet/rbi/gems/webmock@3.25.1.rbi +1792 -0
  48. data/sorbet/rbi/shims/gems/faraday.rbi +21 -0
  49. data/sorbet/rbi/shims/gems/shoulda-context@2.0.0.rbi +15 -0
  50. data/sorbet/tapioca/config.yml +28 -0
  51. data/sorbet/tapioca/extensions/load_gem.rb +1 -0
  52. data/sorbet/tapioca/require.rb +6 -0
  53. metadata +72 -7
@@ -0,0 +1,3030 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `rake` gem.
5
+ # Please instead update this file by running `bin/tapioca gem rake`.
6
+
7
+
8
+ # :stopdoc:
9
+ #
10
+ # Some top level Constants.
11
+ #
12
+ # source://rake//lib/rake.rb#70
13
+ FileList = Rake::FileList
14
+
15
+ # --
16
+ # This a FileUtils extension that defines several additional commands to be
17
+ # added to the FileUtils utility functions.
18
+ #
19
+ # source://rake//lib/rake/file_utils.rb#8
20
+ module FileUtils
21
+ # Run a Ruby interpreter with the given arguments.
22
+ #
23
+ # Example:
24
+ # ruby %{-pe '$_.upcase!' <README}
25
+ #
26
+ # source://rake//lib/rake/file_utils.rb#100
27
+ def ruby(*args, **options, &block); end
28
+
29
+ # Attempt to do a normal file link, but fall back to a copy if the link
30
+ # fails.
31
+ #
32
+ # source://rake//lib/rake/file_utils.rb#112
33
+ def safe_ln(*args, **options); end
34
+
35
+ # Run the system command +cmd+. If multiple arguments are given the command
36
+ # is run directly (without the shell, same semantics as Kernel::exec and
37
+ # Kernel::system).
38
+ #
39
+ # It is recommended you use the multiple argument form over interpolating
40
+ # user input for both usability and security reasons. With the multiple
41
+ # argument form you can easily process files with spaces or other shell
42
+ # reserved characters in them. With the multiple argument form your rake
43
+ # tasks are not vulnerable to users providing an argument like
44
+ # <code>; rm # -rf /</code>.
45
+ #
46
+ # If a block is given, upon command completion the block is called with an
47
+ # OK flag (true on a zero exit status) and a Process::Status object.
48
+ # Without a block a RuntimeError is raised when the command exits non-zero.
49
+ #
50
+ # Examples:
51
+ #
52
+ # sh 'ls -ltr'
53
+ #
54
+ # sh 'ls', 'file with spaces'
55
+ #
56
+ # # check exit status after command runs
57
+ # sh %{grep pattern file} do |ok, res|
58
+ # if !ok
59
+ # puts "pattern not found (status = #{res.exitstatus})"
60
+ # end
61
+ # end
62
+ #
63
+ # source://rake//lib/rake/file_utils.rb#43
64
+ def sh(*cmd, &block); end
65
+
66
+ # Split a file path into individual directory names.
67
+ #
68
+ # Example:
69
+ # split_all("a/b/c") => ['a', 'b', 'c']
70
+ #
71
+ # source://rake//lib/rake/file_utils.rb#128
72
+ def split_all(path); end
73
+
74
+ private
75
+
76
+ # source://rake//lib/rake/file_utils.rb#61
77
+ def create_shell_runner(cmd); end
78
+
79
+ # source://rake//lib/rake/file_utils.rb#86
80
+ def set_verbose_option(options); end
81
+
82
+ # source://rake//lib/rake/file_utils.rb#73
83
+ def sh_show_command(cmd); end
84
+ end
85
+
86
+ # source://rake//lib/rake/file_utils.rb#108
87
+ FileUtils::LN_SUPPORTED = T.let(T.unsafe(nil), Array)
88
+
89
+ # Path to the currently running Ruby program
90
+ #
91
+ # source://rake//lib/rake/file_utils.rb#10
92
+ FileUtils::RUBY = T.let(T.unsafe(nil), String)
93
+
94
+ # source://rake//lib/rake/ext/core.rb#2
95
+ class Module
96
+ # Check for an existing method in the current class before extending. If
97
+ # the method already exists, then a warning is printed and the extension is
98
+ # not added. Otherwise the block is yielded and any definitions in the
99
+ # block will take effect.
100
+ #
101
+ # Usage:
102
+ #
103
+ # class String
104
+ # rake_extension("xyz") do
105
+ # def xyz
106
+ # ...
107
+ # end
108
+ # end
109
+ # end
110
+ #
111
+ # source://rake//lib/rake/ext/core.rb#18
112
+ def rake_extension(method); end
113
+ end
114
+
115
+ # source://rake//lib/rake.rb#24
116
+ module Rake
117
+ extend ::FileUtils::StreamUtils_
118
+ extend ::FileUtils
119
+ extend ::Rake::FileUtilsExt
120
+
121
+ class << self
122
+ # Add files to the rakelib list
123
+ #
124
+ # source://rake//lib/rake/rake_module.rb#33
125
+ def add_rakelib(*files); end
126
+
127
+ # Current Rake Application
128
+ #
129
+ # source://rake//lib/rake/rake_module.rb#8
130
+ def application; end
131
+
132
+ # Set the current Rake application object.
133
+ #
134
+ # source://rake//lib/rake/rake_module.rb#13
135
+ def application=(app); end
136
+
137
+ # Yield each file or directory component.
138
+ #
139
+ # source://rake//lib/rake/file_list.rb#418
140
+ def each_dir_parent(dir); end
141
+
142
+ # Convert Pathname and Pathname-like objects to strings;
143
+ # leave everything else alone
144
+ #
145
+ # source://rake//lib/rake/file_list.rb#429
146
+ def from_pathname(path); end
147
+
148
+ # Load a rakefile.
149
+ #
150
+ # source://rake//lib/rake/rake_module.rb#28
151
+ def load_rakefile(path); end
152
+
153
+ # Return the original directory where the Rake application was started.
154
+ #
155
+ # source://rake//lib/rake/rake_module.rb#23
156
+ def original_dir; end
157
+
158
+ # source://rake//lib/rake/rake_module.rb#17
159
+ def suggested_thread_count; end
160
+
161
+ # Make +block_application+ the default rake application inside a block so
162
+ # you can load rakefiles into a different application.
163
+ #
164
+ # This is useful when you want to run rake tasks inside a library without
165
+ # running rake in a sub-shell.
166
+ #
167
+ # Example:
168
+ #
169
+ # Dir.chdir 'other/directory'
170
+ #
171
+ # other_rake = Rake.with_application do |rake|
172
+ # rake.load_rakefile
173
+ # end
174
+ #
175
+ # puts other_rake.tasks
176
+ #
177
+ # source://rake//lib/rake/rake_module.rb#54
178
+ def with_application(block_application = T.unsafe(nil)); end
179
+ end
180
+ end
181
+
182
+ # Rake main application object. When invoking +rake+ from the
183
+ # command line, a Rake::Application object is created and run.
184
+ #
185
+ # source://rake//lib/rake/application.rb#19
186
+ class Rake::Application
187
+ include ::Rake::TaskManager
188
+ include ::Rake::TraceOutput
189
+
190
+ # Initialize a Rake::Application object.
191
+ #
192
+ # @return [Application] a new instance of Application
193
+ #
194
+ # source://rake//lib/rake/application.rb#49
195
+ def initialize; end
196
+
197
+ # Add a file to the list of files to be imported.
198
+ #
199
+ # source://rake//lib/rake/application.rb#777
200
+ def add_import(fn); end
201
+
202
+ # Add a loader to handle imported files ending in the extension
203
+ # +ext+.
204
+ #
205
+ # source://rake//lib/rake/application.rb#139
206
+ def add_loader(ext, loader); end
207
+
208
+ # Collect the list of tasks on the command line. If no tasks are
209
+ # given, return a list containing only the default task.
210
+ # Environmental assignments are processed at this time as well.
211
+ #
212
+ # `args` is the list of arguments to peruse to get the list of tasks.
213
+ # It should be the command line that was given to rake, less any
214
+ # recognised command-line options, which OptionParser.parse will
215
+ # have taken care of already.
216
+ #
217
+ # source://rake//lib/rake/application.rb#758
218
+ def collect_command_line_tasks(args); end
219
+
220
+ # Default task name ("default").
221
+ # (May be overridden by subclasses)
222
+ #
223
+ # source://rake//lib/rake/application.rb#772
224
+ def default_task_name; end
225
+
226
+ # Warn about deprecated usage.
227
+ #
228
+ # Example:
229
+ # Rake.application.deprecate("import", "Rake.import", caller.first)
230
+ #
231
+ # source://rake//lib/rake/application.rb#258
232
+ def deprecate(old_usage, new_usage, call_site); end
233
+
234
+ # source://rake//lib/rake/application.rb#222
235
+ def display_cause_details(ex); end
236
+
237
+ # Display the error message that caused the exception.
238
+ #
239
+ # source://rake//lib/rake/application.rb#206
240
+ def display_error_message(ex); end
241
+
242
+ # source://rake//lib/rake/application.rb#245
243
+ def display_exception_backtrace(ex); end
244
+
245
+ # source://rake//lib/rake/application.rb#214
246
+ def display_exception_details(ex); end
247
+
248
+ # source://rake//lib/rake/application.rb#229
249
+ def display_exception_details_seen; end
250
+
251
+ # source://rake//lib/rake/application.rb#237
252
+ def display_exception_message_details(ex); end
253
+
254
+ # Display the tasks and prerequisites
255
+ #
256
+ # source://rake//lib/rake/application.rb#381
257
+ def display_prerequisites; end
258
+
259
+ # Display the tasks and comments.
260
+ #
261
+ # source://rake//lib/rake/application.rb#298
262
+ def display_tasks_and_comments; end
263
+
264
+ # Calculate the dynamic width of the
265
+ #
266
+ # source://rake//lib/rake/application.rb#349
267
+ def dynamic_width; end
268
+
269
+ # source://rake//lib/rake/application.rb#353
270
+ def dynamic_width_stty; end
271
+
272
+ # source://rake//lib/rake/application.rb#357
273
+ def dynamic_width_tput; end
274
+
275
+ # Exit the program because of an unhandled exception.
276
+ # (may be overridden by subclasses)
277
+ #
278
+ # source://rake//lib/rake/application.rb#201
279
+ def exit_because_of_exception(ex); end
280
+
281
+ # source://rake//lib/rake/application.rb#678
282
+ def find_rakefile_location; end
283
+
284
+ # Read and handle the command line options. Returns the command line
285
+ # arguments that we didn't understand, which should (in theory) be just
286
+ # task names and env vars.
287
+ #
288
+ # source://rake//lib/rake/application.rb#644
289
+ def handle_options(argv); end
290
+
291
+ # @return [Boolean]
292
+ #
293
+ # source://rake//lib/rake/application.rb#233
294
+ def has_cause?(ex); end
295
+
296
+ # True if one of the files in RAKEFILES is in the current directory.
297
+ # If a match is found, it is copied into @rakefile.
298
+ #
299
+ # source://rake//lib/rake/application.rb#274
300
+ def have_rakefile; end
301
+
302
+ # Initialize the command line parameters and app name.
303
+ #
304
+ # source://rake//lib/rake/application.rb#88
305
+ def init(app_name = T.unsafe(nil), argv = T.unsafe(nil)); end
306
+
307
+ # Invokes a task with arguments that are extracted from +task_string+
308
+ #
309
+ # source://rake//lib/rake/application.rb#157
310
+ def invoke_task(task_string); end
311
+
312
+ # Load the pending list of imported files.
313
+ #
314
+ # source://rake//lib/rake/application.rb#782
315
+ def load_imports; end
316
+
317
+ # Find the rakefile and then load it and any pending imports.
318
+ #
319
+ # source://rake//lib/rake/application.rb#102
320
+ def load_rakefile; end
321
+
322
+ # The name of the application (typically 'rake')
323
+ #
324
+ # source://rake//lib/rake/application.rb#24
325
+ def name; end
326
+
327
+ # Application options from the command line
328
+ #
329
+ # source://rake//lib/rake/application.rb#145
330
+ def options; end
331
+
332
+ # The original directory where rake was invoked.
333
+ #
334
+ # source://rake//lib/rake/application.rb#27
335
+ def original_dir; end
336
+
337
+ # source://rake//lib/rake/application.rb#163
338
+ def parse_task_string(string); end
339
+
340
+ # source://rake//lib/rake/application.rb#690
341
+ def print_rakefile_directory(location); end
342
+
343
+ # Similar to the regular Ruby +require+ command, but will check
344
+ # for *.rake files in addition to *.rb files.
345
+ #
346
+ # source://rake//lib/rake/application.rb#664
347
+ def rake_require(file_name, paths = T.unsafe(nil), loaded = T.unsafe(nil)); end
348
+
349
+ # Name of the actual rakefile used.
350
+ #
351
+ # source://rake//lib/rake/application.rb#30
352
+ def rakefile; end
353
+
354
+ # source://rake//lib/rake/application.rb#798
355
+ def rakefile_location(backtrace = T.unsafe(nil)); end
356
+
357
+ # source://rake//lib/rake/application.rb#695
358
+ def raw_load_rakefile; end
359
+
360
+ # Run the Rake application. The run method performs the following
361
+ # three steps:
362
+ #
363
+ # * Initialize the command line options (+init+).
364
+ # * Define the tasks (+load_rakefile+).
365
+ # * Run the top level tasks (+top_level+).
366
+ #
367
+ # If you wish to build a custom rake command, you should call
368
+ # +init+ on your application. Then define any tasks. Finally,
369
+ # call +top_level+ to run your top level tasks.
370
+ #
371
+ # source://rake//lib/rake/application.rb#79
372
+ def run(argv = T.unsafe(nil)); end
373
+
374
+ # Run the given block with the thread startup and shutdown.
375
+ #
376
+ # source://rake//lib/rake/application.rb#122
377
+ def run_with_threads; end
378
+
379
+ # source://rake//lib/rake/application.rb#807
380
+ def set_default_options; end
381
+
382
+ # Provide standard exception handling for the given block.
383
+ #
384
+ # source://rake//lib/rake/application.rb#185
385
+ def standard_exception_handling; end
386
+
387
+ # A list of all the standard options used in rake, suitable for
388
+ # passing to OptionParser.
389
+ #
390
+ # source://rake//lib/rake/application.rb#402
391
+ def standard_rake_options; end
392
+
393
+ # The directory path containing the system wide rakefiles.
394
+ #
395
+ # source://rake//lib/rake/application.rb#727
396
+ def system_dir; end
397
+
398
+ # Number of columns on the terminal
399
+ #
400
+ # source://rake//lib/rake/application.rb#33
401
+ def terminal_columns; end
402
+
403
+ # Number of columns on the terminal
404
+ #
405
+ # source://rake//lib/rake/application.rb#33
406
+ def terminal_columns=(_arg0); end
407
+
408
+ # source://rake//lib/rake/application.rb#337
409
+ def terminal_width; end
410
+
411
+ # Return the thread pool used for multithreaded processing.
412
+ #
413
+ # source://rake//lib/rake/application.rb#150
414
+ def thread_pool; end
415
+
416
+ # Run the top level tasks of a Rake application.
417
+ #
418
+ # source://rake//lib/rake/application.rb#109
419
+ def top_level; end
420
+
421
+ # List of the top level task names (task names from the command line).
422
+ #
423
+ # source://rake//lib/rake/application.rb#36
424
+ def top_level_tasks; end
425
+
426
+ # source://rake//lib/rake/application.rb#388
427
+ def trace(*strings); end
428
+
429
+ # source://rake//lib/rake/application.rb#370
430
+ def truncate(string, width); end
431
+
432
+ # We will truncate output if we are outputting to a TTY or if we've been
433
+ # given an explicit column width to honor
434
+ #
435
+ # @return [Boolean]
436
+ #
437
+ # source://rake//lib/rake/application.rb#293
438
+ def truncate_output?; end
439
+
440
+ # Override the detected TTY output state (mostly for testing)
441
+ #
442
+ # source://rake//lib/rake/application.rb#39
443
+ def tty_output=(_arg0); end
444
+
445
+ # True if we are outputting to TTY, false otherwise
446
+ #
447
+ # @return [Boolean]
448
+ #
449
+ # source://rake//lib/rake/application.rb#287
450
+ def tty_output?; end
451
+
452
+ # @return [Boolean]
453
+ #
454
+ # source://rake//lib/rake/application.rb#361
455
+ def unix?; end
456
+
457
+ # @return [Boolean]
458
+ #
459
+ # source://rake//lib/rake/application.rb#366
460
+ def windows?; end
461
+
462
+ private
463
+
464
+ # source://rake//lib/rake/application.rb#721
465
+ def glob(path, &block); end
466
+
467
+ # Does the exception have a task invocation chain?
468
+ #
469
+ # @return [Boolean]
470
+ #
471
+ # source://rake//lib/rake/application.rb#267
472
+ def has_chain?(exception); end
473
+
474
+ # source://rake//lib/rake/application.rb#620
475
+ def select_tasks_to_show(options, show_tasks, value); end
476
+
477
+ # source://rake//lib/rake/application.rb#627
478
+ def select_trace_output(options, trace_option, value); end
479
+
480
+ # source://rake//lib/rake/application.rb#393
481
+ def sort_options(options); end
482
+
483
+ # source://rake//lib/rake/application.rb#744
484
+ def standard_system_dir; end
485
+ end
486
+
487
+ # source://rake//lib/rake/application.rb#41
488
+ Rake::Application::DEFAULT_RAKEFILES = T.let(T.unsafe(nil), Array)
489
+
490
+ # source://rake//lib/rake/backtrace.rb#3
491
+ module Rake::Backtrace
492
+ class << self
493
+ # source://rake//lib/rake/backtrace.rb#18
494
+ def collapse(backtrace); end
495
+ end
496
+ end
497
+
498
+ # source://rake//lib/rake/backtrace.rb#8
499
+ Rake::Backtrace::SUPPRESSED_PATHS = T.let(T.unsafe(nil), Array)
500
+
501
+ # source://rake//lib/rake/backtrace.rb#12
502
+ Rake::Backtrace::SUPPRESSED_PATHS_RE = T.let(T.unsafe(nil), String)
503
+
504
+ # source://rake//lib/rake/backtrace.rb#16
505
+ Rake::Backtrace::SUPPRESS_PATTERN = T.let(T.unsafe(nil), Regexp)
506
+
507
+ # source://rake//lib/rake/backtrace.rb#4
508
+ Rake::Backtrace::SYS_KEYS = T.let(T.unsafe(nil), Array)
509
+
510
+ # source://rake//lib/rake/backtrace.rb#5
511
+ Rake::Backtrace::SYS_PATHS = T.let(T.unsafe(nil), Array)
512
+
513
+ # Mixin for creating easily cloned objects.
514
+ #
515
+ # source://rake//lib/rake/cloneable.rb#6
516
+ module Rake::Cloneable
517
+ private
518
+
519
+ # The hook that is invoked by 'clone' and 'dup' methods.
520
+ #
521
+ # source://rake//lib/rake/cloneable.rb#8
522
+ def initialize_copy(source); end
523
+ end
524
+
525
+ # source://rake//lib/rake/application.rb#13
526
+ class Rake::CommandLineOptionError < ::StandardError; end
527
+
528
+ # Based on a script at:
529
+ # http://stackoverflow.com/questions/891537/ruby-detect-number-of-cpus-installed
530
+ #
531
+ # source://rake//lib/rake/cpu_counter.rb#6
532
+ class Rake::CpuCounter
533
+ # source://rake//lib/rake/cpu_counter.rb#22
534
+ def count; end
535
+
536
+ # source://rake//lib/rake/cpu_counter.rb#11
537
+ def count_with_default(default = T.unsafe(nil)); end
538
+
539
+ class << self
540
+ # source://rake//lib/rake/cpu_counter.rb#7
541
+ def count; end
542
+ end
543
+ end
544
+
545
+ # DSL is a module that provides #task, #desc, #namespace, etc. Use this
546
+ # when you'd like to use rake outside the top level scope.
547
+ #
548
+ # For a Rakefile you run from the command line this module is automatically
549
+ # included.
550
+ #
551
+ # source://rake//lib/rake/dsl_definition.rb#14
552
+ module Rake::DSL
553
+ include ::FileUtils::StreamUtils_
554
+ include ::FileUtils
555
+ include ::Rake::FileUtilsExt
556
+
557
+ private
558
+
559
+ # source://rake//lib/rake/file_utils_ext.rb#34
560
+ def cd(*args, **options, &block); end
561
+
562
+ # source://rake//lib/rake/file_utils_ext.rb#34
563
+ def chdir(*args, **options, &block); end
564
+
565
+ # source://rake//lib/rake/file_utils_ext.rb#34
566
+ def chmod(*args, **options, &block); end
567
+
568
+ # source://rake//lib/rake/file_utils_ext.rb#34
569
+ def chmod_R(*args, **options, &block); end
570
+
571
+ # source://rake//lib/rake/file_utils_ext.rb#34
572
+ def chown(*args, **options, &block); end
573
+
574
+ # source://rake//lib/rake/file_utils_ext.rb#34
575
+ def chown_R(*args, **options, &block); end
576
+
577
+ # source://rake//lib/rake/file_utils_ext.rb#34
578
+ def copy(*args, **options, &block); end
579
+
580
+ # source://rake//lib/rake/file_utils_ext.rb#34
581
+ def cp(*args, **options, &block); end
582
+
583
+ # source://rake//lib/rake/file_utils_ext.rb#34
584
+ def cp_lr(*args, **options, &block); end
585
+
586
+ # source://rake//lib/rake/file_utils_ext.rb#34
587
+ def cp_r(*args, **options, &block); end
588
+
589
+ # Describes the next rake task. Duplicate descriptions are discarded.
590
+ # Descriptions are shown with <code>rake -T</code> (up to the first
591
+ # sentence) and <code>rake -D</code> (the entire description).
592
+ #
593
+ # Example:
594
+ # desc "Run the Unit Tests"
595
+ # task test: [:build]
596
+ # # ... run tests
597
+ # end
598
+ #
599
+ # source://rake//lib/rake/dsl_definition.rb#165
600
+ def desc(description); end
601
+
602
+ # Declare a set of files tasks to create the given directories on
603
+ # demand.
604
+ #
605
+ # Example:
606
+ # directory "testdata/doc"
607
+ #
608
+ # source://rake//lib/rake/dsl_definition.rb#92
609
+ def directory(*args, &block); end
610
+
611
+ # Declare a file task.
612
+ #
613
+ # Example:
614
+ # file "config.cfg" => ["config.template"] do
615
+ # open("config.cfg", "w") do |outfile|
616
+ # open("config.template") do |infile|
617
+ # while line = infile.gets
618
+ # outfile.puts line
619
+ # end
620
+ # end
621
+ # end
622
+ # end
623
+ #
624
+ # source://rake//lib/rake/dsl_definition.rb#76
625
+ def file(*args, &block); end
626
+
627
+ # Declare a file creation task.
628
+ # (Mainly used for the directory command).
629
+ #
630
+ # source://rake//lib/rake/dsl_definition.rb#82
631
+ def file_create(*args, &block); end
632
+
633
+ # Import the partial Rakefiles +fn+. Imported files are loaded
634
+ # _after_ the current file is completely loaded. This allows the
635
+ # import statement to appear anywhere in the importing file, and yet
636
+ # allowing the imported files to depend on objects defined in the
637
+ # importing file.
638
+ #
639
+ # A common use of the import statement is to include files
640
+ # containing dependency declarations.
641
+ #
642
+ # See also the --rakelibdir command line option.
643
+ #
644
+ # Example:
645
+ # import ".depend", "my_rules"
646
+ #
647
+ # source://rake//lib/rake/dsl_definition.rb#183
648
+ def import(*fns); end
649
+
650
+ # source://rake//lib/rake/file_utils_ext.rb#34
651
+ def install(*args, **options, &block); end
652
+
653
+ # source://rake//lib/rake/file_utils_ext.rb#34
654
+ def link(*args, **options, &block); end
655
+
656
+ # source://rake//lib/rake/file_utils_ext.rb#34
657
+ def ln(*args, **options, &block); end
658
+
659
+ # source://rake//lib/rake/file_utils_ext.rb#34
660
+ def ln_s(*args, **options, &block); end
661
+
662
+ # source://rake//lib/rake/file_utils_ext.rb#34
663
+ def ln_sf(*args, **options, &block); end
664
+
665
+ # source://rake//lib/rake/file_utils_ext.rb#34
666
+ def ln_sr(*args, **options, &block); end
667
+
668
+ # source://rake//lib/rake/file_utils_ext.rb#34
669
+ def makedirs(*args, **options, &block); end
670
+
671
+ # source://rake//lib/rake/file_utils_ext.rb#34
672
+ def mkdir(*args, **options, &block); end
673
+
674
+ # source://rake//lib/rake/file_utils_ext.rb#34
675
+ def mkdir_p(*args, **options, &block); end
676
+
677
+ # source://rake//lib/rake/file_utils_ext.rb#34
678
+ def mkpath(*args, **options, &block); end
679
+
680
+ # source://rake//lib/rake/file_utils_ext.rb#34
681
+ def move(*args, **options, &block); end
682
+
683
+ # Declare a task that performs its prerequisites in
684
+ # parallel. Multitasks does *not* guarantee that its prerequisites
685
+ # will execute in any given order (which is obvious when you think
686
+ # about it)
687
+ #
688
+ # Example:
689
+ # multitask deploy: %w[deploy_gem deploy_rdoc]
690
+ #
691
+ # source://rake//lib/rake/dsl_definition.rb#112
692
+ def multitask(*args, &block); end
693
+
694
+ # source://rake//lib/rake/file_utils_ext.rb#34
695
+ def mv(*args, **options, &block); end
696
+
697
+ # Create a new rake namespace and use it for evaluating the given
698
+ # block. Returns a NameSpace object that can be used to lookup
699
+ # tasks defined in the namespace.
700
+ #
701
+ # Example:
702
+ #
703
+ # ns = namespace "nested" do
704
+ # # the "nested:run" task
705
+ # task :run
706
+ # end
707
+ # task_run = ns[:run] # find :run in the given namespace.
708
+ #
709
+ # Tasks can also be defined in a namespace by using a ":" in the task
710
+ # name:
711
+ #
712
+ # task "nested:test" do
713
+ # # ...
714
+ # end
715
+ #
716
+ # source://rake//lib/rake/dsl_definition.rb#135
717
+ def namespace(name = T.unsafe(nil), &block); end
718
+
719
+ # source://rake//lib/rake/file_utils_ext.rb#77
720
+ def nowrite(value = T.unsafe(nil)); end
721
+
722
+ # source://rake//lib/rake/file_utils_ext.rb#123
723
+ def rake_check_options(options, *optdecl); end
724
+
725
+ # source://rake//lib/rake/file_utils_ext.rb#116
726
+ def rake_output_message(message); end
727
+
728
+ # source://rake//lib/rake/file_utils_ext.rb#34
729
+ def remove(*args, **options, &block); end
730
+
731
+ # source://rake//lib/rake/file_utils_ext.rb#34
732
+ def rm(*args, **options, &block); end
733
+
734
+ # source://rake//lib/rake/file_utils_ext.rb#34
735
+ def rm_f(*args, **options, &block); end
736
+
737
+ # source://rake//lib/rake/file_utils_ext.rb#34
738
+ def rm_r(*args, **options, &block); end
739
+
740
+ # source://rake//lib/rake/file_utils_ext.rb#34
741
+ def rm_rf(*args, **options, &block); end
742
+
743
+ # source://rake//lib/rake/file_utils_ext.rb#34
744
+ def rmdir(*args, **options, &block); end
745
+
746
+ # source://rake//lib/rake/file_utils_ext.rb#34
747
+ def rmtree(*args, **options, &block); end
748
+
749
+ # source://rake//lib/rake/file_utils.rb#100
750
+ def ruby(*args, **options, &block); end
751
+
752
+ # Declare a rule for auto-tasks.
753
+ #
754
+ # Example:
755
+ # rule '.o' => '.c' do |t|
756
+ # sh 'cc', '-o', t.name, t.source
757
+ # end
758
+ #
759
+ # source://rake//lib/rake/dsl_definition.rb#151
760
+ def rule(*args, &block); end
761
+
762
+ # source://rake//lib/rake/file_utils.rb#112
763
+ def safe_ln(*args, **options); end
764
+
765
+ # source://rake//lib/rake/file_utils_ext.rb#34
766
+ def safe_unlink(*args, **options, &block); end
767
+
768
+ # source://rake//lib/rake/file_utils.rb#43
769
+ def sh(*cmd, &block); end
770
+
771
+ # source://rake//lib/rake/file_utils.rb#128
772
+ def split_all(path); end
773
+
774
+ # source://rake//lib/rake/file_utils_ext.rb#34
775
+ def symlink(*args, **options, &block); end
776
+
777
+ # :call-seq:
778
+ # task(task_name)
779
+ # task(task_name: dependencies)
780
+ # task(task_name, arguments => dependencies)
781
+ #
782
+ # Declare a basic task. The +task_name+ is always the first argument. If
783
+ # the task name contains a ":" it is defined in that namespace.
784
+ #
785
+ # The +dependencies+ may be a single task name or an Array of task names.
786
+ # The +argument+ (a single name) or +arguments+ (an Array of names) define
787
+ # the arguments provided to the task.
788
+ #
789
+ # The task, argument and dependency names may be either symbols or
790
+ # strings.
791
+ #
792
+ # A task with a single dependency:
793
+ #
794
+ # task clobber: %w[clean] do
795
+ # rm_rf "html"
796
+ # end
797
+ #
798
+ # A task with an argument and a dependency:
799
+ #
800
+ # task :package, [:version] => :test do |t, args|
801
+ # # ...
802
+ # end
803
+ #
804
+ # To invoke this task from the command line:
805
+ #
806
+ # $ rake package[1.2.3]
807
+ #
808
+ # source://rake//lib/rake/dsl_definition.rb#59
809
+ def task(*args, &block); end
810
+
811
+ # source://rake//lib/rake/file_utils_ext.rb#34
812
+ def touch(*args, **options, &block); end
813
+
814
+ # source://rake//lib/rake/file_utils_ext.rb#53
815
+ def verbose(value = T.unsafe(nil)); end
816
+
817
+ # source://rake//lib/rake/file_utils_ext.rb#107
818
+ def when_writing(msg = T.unsafe(nil)); end
819
+ end
820
+
821
+ # Default Rakefile loader used by +import+.
822
+ #
823
+ # source://rake//lib/rake/default_loader.rb#5
824
+ class Rake::DefaultLoader
825
+ # Loads a rakefile into the current application from +fn+
826
+ #
827
+ # source://rake//lib/rake/default_loader.rb#10
828
+ def load(fn); end
829
+ end
830
+
831
+ # source://rake//lib/rake/early_time.rb#21
832
+ Rake::EARLY = T.let(T.unsafe(nil), Rake::EarlyTime)
833
+
834
+ # source://rake//lib/rake/task_arguments.rb#108
835
+ Rake::EMPTY_TASK_ARGS = T.let(T.unsafe(nil), Rake::TaskArguments)
836
+
837
+ # EarlyTime is a fake timestamp that occurs _before_ any other time value.
838
+ #
839
+ # source://rake//lib/rake/early_time.rb#5
840
+ class Rake::EarlyTime
841
+ include ::Comparable
842
+ include ::Singleton::SingletonInstanceMethods
843
+ include ::Singleton
844
+ extend ::Singleton::SingletonClassMethods
845
+
846
+ # The EarlyTime always comes before +other+!
847
+ #
848
+ # source://rake//lib/rake/early_time.rb#12
849
+ def <=>(other); end
850
+
851
+ # source://rake//lib/rake/early_time.rb#16
852
+ def to_s; end
853
+
854
+ class << self
855
+ private
856
+
857
+ def allocate; end
858
+ def new(*_arg0); end
859
+ end
860
+ end
861
+
862
+ # A FileCreationTask is a file task that when used as a dependency will be
863
+ # needed if and only if the file has not been created. Once created, it is
864
+ # not re-triggered if any of its dependencies are newer, nor does trigger
865
+ # any rebuilds of tasks that depend on it whenever it is updated.
866
+ #
867
+ # source://rake//lib/rake/file_creation_task.rb#12
868
+ class Rake::FileCreationTask < ::Rake::FileTask
869
+ # Is this file task needed? Yes if it doesn't exist.
870
+ #
871
+ # @return [Boolean]
872
+ #
873
+ # source://rake//lib/rake/file_creation_task.rb#14
874
+ def needed?; end
875
+
876
+ # Time stamp for file creation task. This time stamp is earlier
877
+ # than any other time stamp.
878
+ #
879
+ # source://rake//lib/rake/file_creation_task.rb#20
880
+ def timestamp; end
881
+ end
882
+
883
+ # A FileList is essentially an array with a few helper methods defined to
884
+ # make file manipulation a bit easier.
885
+ #
886
+ # FileLists are lazy. When given a list of glob patterns for possible files
887
+ # to be included in the file list, instead of searching the file structures
888
+ # to find the files, a FileList holds the pattern for latter use.
889
+ #
890
+ # This allows us to define a number of FileList to match any number of
891
+ # files, but only search out the actual files when then FileList itself is
892
+ # actually used. The key is that the first time an element of the
893
+ # FileList/Array is requested, the pending patterns are resolved into a real
894
+ # list of file names.
895
+ #
896
+ # source://rake//lib/rake/file_list.rb#22
897
+ class Rake::FileList
898
+ include ::Rake::Cloneable
899
+
900
+ # Create a file list from the globbable patterns given. If you wish to
901
+ # perform multiple includes or excludes at object build time, use the
902
+ # "yield self" pattern.
903
+ #
904
+ # Example:
905
+ # file_list = FileList.new('lib/**/*.rb', 'test/test*.rb')
906
+ #
907
+ # pkg_files = FileList.new('lib/**/*') do |fl|
908
+ # fl.exclude(/\bCVS\b/)
909
+ # end
910
+ #
911
+ # @return [FileList] a new instance of FileList
912
+ # @yield [_self]
913
+ # @yieldparam _self [Rake::FileList] the object that the method was called on
914
+ #
915
+ # source://rake//lib/rake/file_list.rb#99
916
+ def initialize(*patterns); end
917
+
918
+ # source://rake//lib/rake/file_list.rb#68
919
+ def &(*args, &block); end
920
+
921
+ # Redefine * to return either a string or a new file list.
922
+ #
923
+ # source://rake//lib/rake/file_list.rb#193
924
+ def *(other); end
925
+
926
+ # source://rake//lib/rake/file_list.rb#68
927
+ def +(*args, &block); end
928
+
929
+ # source://rake//lib/rake/file_list.rb#68
930
+ def -(*args, &block); end
931
+
932
+ # source://rake//lib/rake/file_list.rb#203
933
+ def <<(obj); end
934
+
935
+ # source://rake//lib/rake/file_list.rb#77
936
+ def <=>(*args, &block); end
937
+
938
+ # A FileList is equal through array equality.
939
+ #
940
+ # source://rake//lib/rake/file_list.rb#171
941
+ def ==(array); end
942
+
943
+ # source://rake//lib/rake/file_list.rb#77
944
+ def [](*args, &block); end
945
+
946
+ # source://rake//lib/rake/file_list.rb#77
947
+ def []=(*args, &block); end
948
+
949
+ # Add file names defined by glob patterns to the file list. If an array
950
+ # is given, add each element of the array.
951
+ #
952
+ # Example:
953
+ # file_list.include("*.java", "*.cfg")
954
+ # file_list.include %w( math.c lib.h *.o )
955
+ #
956
+ # source://rake//lib/rake/file_list.rb#116
957
+ def add(*filenames); end
958
+
959
+ # source://rake//lib/rake/file_list.rb#77
960
+ def all?(*args, &block); end
961
+
962
+ # source://rake//lib/rake/file_list.rb#77
963
+ def any?(*args, &block); end
964
+
965
+ # source://rake//lib/rake/file_list.rb#77
966
+ def append(*args, &block); end
967
+
968
+ # source://rake//lib/rake/file_list.rb#77
969
+ def assoc(*args, &block); end
970
+
971
+ # source://rake//lib/rake/file_list.rb#77
972
+ def at(*args, &block); end
973
+
974
+ # source://rake//lib/rake/file_list.rb#77
975
+ def bsearch(*args, &block); end
976
+
977
+ # source://rake//lib/rake/file_list.rb#77
978
+ def bsearch_index(*args, &block); end
979
+
980
+ # source://rake//lib/rake/file_list.rb#77
981
+ def chain(*args, &block); end
982
+
983
+ # source://rake//lib/rake/file_list.rb#77
984
+ def chunk(*args, &block); end
985
+
986
+ # source://rake//lib/rake/file_list.rb#77
987
+ def chunk_while(*args, &block); end
988
+
989
+ # source://rake//lib/rake/file_list.rb#77
990
+ def clear(*args, &block); end
991
+
992
+ # Clear all the exclude patterns so that we exclude nothing.
993
+ #
994
+ # source://rake//lib/rake/file_list.rb#164
995
+ def clear_exclude; end
996
+
997
+ # source://rake//lib/rake/file_list.rb#68
998
+ def collect(*args, &block); end
999
+
1000
+ # source://rake//lib/rake/file_list.rb#77
1001
+ def collect!(*args, &block); end
1002
+
1003
+ # source://rake//lib/rake/file_list.rb#77
1004
+ def collect_concat(*args, &block); end
1005
+
1006
+ # source://rake//lib/rake/file_list.rb#77
1007
+ def combination(*args, &block); end
1008
+
1009
+ # source://rake//lib/rake/file_list.rb#68
1010
+ def compact(*args, &block); end
1011
+
1012
+ # source://rake//lib/rake/file_list.rb#77
1013
+ def compact!(*args, &block); end
1014
+
1015
+ # source://rake//lib/rake/file_list.rb#77
1016
+ def concat(*args, &block); end
1017
+
1018
+ # source://rake//lib/rake/file_list.rb#77
1019
+ def count(*args, &block); end
1020
+
1021
+ # source://rake//lib/rake/file_list.rb#77
1022
+ def cycle(*args, &block); end
1023
+
1024
+ # source://rake//lib/rake/file_list.rb#77
1025
+ def deconstruct(*args, &block); end
1026
+
1027
+ # source://rake//lib/rake/file_list.rb#77
1028
+ def delete(*args, &block); end
1029
+
1030
+ # source://rake//lib/rake/file_list.rb#77
1031
+ def delete_at(*args, &block); end
1032
+
1033
+ # source://rake//lib/rake/file_list.rb#77
1034
+ def delete_if(*args, &block); end
1035
+
1036
+ # source://rake//lib/rake/file_list.rb#77
1037
+ def detect(*args, &block); end
1038
+
1039
+ # source://rake//lib/rake/file_list.rb#77
1040
+ def difference(*args, &block); end
1041
+
1042
+ # source://rake//lib/rake/file_list.rb#77
1043
+ def dig(*args, &block); end
1044
+
1045
+ # source://rake//lib/rake/file_list.rb#77
1046
+ def drop(*args, &block); end
1047
+
1048
+ # source://rake//lib/rake/file_list.rb#77
1049
+ def drop_while(*args, &block); end
1050
+
1051
+ # source://rake//lib/rake/file_list.rb#77
1052
+ def each(*args, &block); end
1053
+
1054
+ # source://rake//lib/rake/file_list.rb#77
1055
+ def each_cons(*args, &block); end
1056
+
1057
+ # source://rake//lib/rake/file_list.rb#77
1058
+ def each_entry(*args, &block); end
1059
+
1060
+ # source://rake//lib/rake/file_list.rb#77
1061
+ def each_index(*args, &block); end
1062
+
1063
+ # source://rake//lib/rake/file_list.rb#77
1064
+ def each_slice(*args, &block); end
1065
+
1066
+ # source://rake//lib/rake/file_list.rb#77
1067
+ def each_with_index(*args, &block); end
1068
+
1069
+ # source://rake//lib/rake/file_list.rb#77
1070
+ def each_with_object(*args, &block); end
1071
+
1072
+ # Grep each of the files in the filelist using the given pattern. If a
1073
+ # block is given, call the block on each matching line, passing the file
1074
+ # name, line number, and the matching line of text. If no block is given,
1075
+ # a standard emacs style file:linenumber:line message will be printed to
1076
+ # standard out. Returns the number of matched items.
1077
+ #
1078
+ # source://rake//lib/rake/file_list.rb#293
1079
+ def egrep(pattern, *options); end
1080
+
1081
+ # source://rake//lib/rake/file_list.rb#77
1082
+ def empty?(*args, &block); end
1083
+
1084
+ # source://rake//lib/rake/file_list.rb#77
1085
+ def entries(*args, &block); end
1086
+
1087
+ # Register a list of file name patterns that should be excluded from the
1088
+ # list. Patterns may be regular expressions, glob patterns or regular
1089
+ # strings. In addition, a block given to exclude will remove entries that
1090
+ # return true when given to the block.
1091
+ #
1092
+ # Note that glob patterns are expanded against the file system. If a file
1093
+ # is explicitly added to a file list, but does not exist in the file
1094
+ # system, then an glob pattern in the exclude list will not exclude the
1095
+ # file.
1096
+ #
1097
+ # Examples:
1098
+ # FileList['a.c', 'b.c'].exclude("a.c") => ['b.c']
1099
+ # FileList['a.c', 'b.c'].exclude(/^a/) => ['b.c']
1100
+ #
1101
+ # If "a.c" is a file, then ...
1102
+ # FileList['a.c', 'b.c'].exclude("a.*") => ['b.c']
1103
+ #
1104
+ # If "a.c" is not a file, then ...
1105
+ # FileList['a.c', 'b.c'].exclude("a.*") => ['a.c', 'b.c']
1106
+ #
1107
+ # source://rake//lib/rake/file_list.rb#150
1108
+ def exclude(*patterns, &block); end
1109
+
1110
+ # Should the given file name be excluded from the list?
1111
+ #
1112
+ # NOTE: This method was formerly named "exclude?", but Rails
1113
+ # introduced an exclude? method as an array method and setup a
1114
+ # conflict with file list. We renamed the method to avoid
1115
+ # confusion. If you were using "FileList#exclude?" in your user
1116
+ # code, you will need to update.
1117
+ #
1118
+ # @return [Boolean]
1119
+ #
1120
+ # source://rake//lib/rake/file_list.rb#364
1121
+ def excluded_from_list?(fn); end
1122
+
1123
+ # Return a new file list that only contains file names from the current
1124
+ # file list that exist on the file system.
1125
+ #
1126
+ # source://rake//lib/rake/file_list.rb#320
1127
+ def existing; end
1128
+
1129
+ # Modify the current file list so that it contains only file name that
1130
+ # exist on the file system.
1131
+ #
1132
+ # source://rake//lib/rake/file_list.rb#326
1133
+ def existing!; end
1134
+
1135
+ # Return a new FileList with <tt>String#ext</tt> method applied to
1136
+ # each member of the array.
1137
+ #
1138
+ # This method is a shortcut for:
1139
+ #
1140
+ # array.collect { |item| item.ext(newext) }
1141
+ #
1142
+ # +ext+ is a user added method for the Array class.
1143
+ #
1144
+ # source://rake//lib/rake/file_list.rb#284
1145
+ def ext(newext = T.unsafe(nil)); end
1146
+
1147
+ # source://rake//lib/rake/file_list.rb#77
1148
+ def fetch(*args, &block); end
1149
+
1150
+ # source://rake//lib/rake/file_list.rb#77
1151
+ def fetch_values(*args, &block); end
1152
+
1153
+ # source://rake//lib/rake/file_list.rb#77
1154
+ def fill(*args, &block); end
1155
+
1156
+ # source://rake//lib/rake/file_list.rb#77
1157
+ def filter(*args, &block); end
1158
+
1159
+ # source://rake//lib/rake/file_list.rb#77
1160
+ def filter!(*args, &block); end
1161
+
1162
+ # source://rake//lib/rake/file_list.rb#77
1163
+ def filter_map(*args, &block); end
1164
+
1165
+ # source://rake//lib/rake/file_list.rb#77
1166
+ def find(*args, &block); end
1167
+
1168
+ # source://rake//lib/rake/file_list.rb#68
1169
+ def find_all(*args, &block); end
1170
+
1171
+ # source://rake//lib/rake/file_list.rb#77
1172
+ def find_index(*args, &block); end
1173
+
1174
+ # source://rake//lib/rake/file_list.rb#77
1175
+ def first(*args, &block); end
1176
+
1177
+ # source://rake//lib/rake/file_list.rb#77
1178
+ def flat_map(*args, &block); end
1179
+
1180
+ # source://rake//lib/rake/file_list.rb#68
1181
+ def flatten(*args, &block); end
1182
+
1183
+ # source://rake//lib/rake/file_list.rb#77
1184
+ def flatten!(*args, &block); end
1185
+
1186
+ # source://rake//lib/rake/file_list.rb#68
1187
+ def grep(*args, &block); end
1188
+
1189
+ # source://rake//lib/rake/file_list.rb#77
1190
+ def grep_v(*args, &block); end
1191
+
1192
+ # source://rake//lib/rake/file_list.rb#77
1193
+ def group_by(*args, &block); end
1194
+
1195
+ # Return a new FileList with the results of running +gsub+ against each
1196
+ # element of the original list.
1197
+ #
1198
+ # Example:
1199
+ # FileList['lib/test/file', 'x/y'].gsub(/\//, "\\")
1200
+ # => ['lib\\test\\file', 'x\\y']
1201
+ #
1202
+ # source://rake//lib/rake/file_list.rb#253
1203
+ def gsub(pat, rep); end
1204
+
1205
+ # Same as +gsub+ except that the original file list is modified.
1206
+ #
1207
+ # source://rake//lib/rake/file_list.rb#264
1208
+ def gsub!(pat, rep); end
1209
+
1210
+ # source://rake//lib/rake/file_list.rb#391
1211
+ def import(array); end
1212
+
1213
+ # Add file names defined by glob patterns to the file list. If an array
1214
+ # is given, add each element of the array.
1215
+ #
1216
+ # Example:
1217
+ # file_list.include("*.java", "*.cfg")
1218
+ # file_list.include %w( math.c lib.h *.o )
1219
+ #
1220
+ # source://rake//lib/rake/file_list.rb#116
1221
+ def include(*filenames); end
1222
+
1223
+ # source://rake//lib/rake/file_list.rb#77
1224
+ def include?(*args, &block); end
1225
+
1226
+ # source://rake//lib/rake/file_list.rb#77
1227
+ def index(*args, &block); end
1228
+
1229
+ # source://rake//lib/rake/file_list.rb#77
1230
+ def inject(*args, &block); end
1231
+
1232
+ # source://rake//lib/rake/file_list.rb#77
1233
+ def insert(*args, &block); end
1234
+
1235
+ # source://rake//lib/rake/file_list.rb#77
1236
+ def inspect(*args, &block); end
1237
+
1238
+ # source://rake//lib/rake/file_list.rb#77
1239
+ def intersect?(*args, &block); end
1240
+
1241
+ # source://rake//lib/rake/file_list.rb#77
1242
+ def intersection(*args, &block); end
1243
+
1244
+ # Lie about our class.
1245
+ #
1246
+ # @return [Boolean]
1247
+ #
1248
+ # source://rake//lib/rake/file_list.rb#187
1249
+ def is_a?(klass); end
1250
+
1251
+ # source://rake//lib/rake/file_list.rb#77
1252
+ def join(*args, &block); end
1253
+
1254
+ # source://rake//lib/rake/file_list.rb#77
1255
+ def keep_if(*args, &block); end
1256
+
1257
+ # Lie about our class.
1258
+ #
1259
+ # @return [Boolean]
1260
+ #
1261
+ # source://rake//lib/rake/file_list.rb#187
1262
+ def kind_of?(klass); end
1263
+
1264
+ # source://rake//lib/rake/file_list.rb#77
1265
+ def last(*args, &block); end
1266
+
1267
+ # source://rake//lib/rake/file_list.rb#77
1268
+ def lazy(*args, &block); end
1269
+
1270
+ # source://rake//lib/rake/file_list.rb#77
1271
+ def length(*args, &block); end
1272
+
1273
+ # source://rake//lib/rake/file_list.rb#68
1274
+ def map(*args, &block); end
1275
+
1276
+ # source://rake//lib/rake/file_list.rb#77
1277
+ def map!(*args, &block); end
1278
+
1279
+ # source://rake//lib/rake/file_list.rb#77
1280
+ def max(*args, &block); end
1281
+
1282
+ # source://rake//lib/rake/file_list.rb#77
1283
+ def max_by(*args, &block); end
1284
+
1285
+ # source://rake//lib/rake/file_list.rb#77
1286
+ def member?(*args, &block); end
1287
+
1288
+ # source://rake//lib/rake/file_list.rb#77
1289
+ def min(*args, &block); end
1290
+
1291
+ # source://rake//lib/rake/file_list.rb#77
1292
+ def min_by(*args, &block); end
1293
+
1294
+ # source://rake//lib/rake/file_list.rb#77
1295
+ def minmax(*args, &block); end
1296
+
1297
+ # source://rake//lib/rake/file_list.rb#77
1298
+ def minmax_by(*args, &block); end
1299
+
1300
+ # source://rake//lib/rake/file_list.rb#77
1301
+ def none?(*args, &block); end
1302
+
1303
+ # source://rake//lib/rake/file_list.rb#77
1304
+ def one?(*args, &block); end
1305
+
1306
+ # source://rake//lib/rake/file_list.rb#77
1307
+ def pack(*args, &block); end
1308
+
1309
+ # FileList version of partition. Needed because the nested arrays should
1310
+ # be FileLists in this version.
1311
+ #
1312
+ # source://rake//lib/rake/file_list.rb#334
1313
+ def partition(&block); end
1314
+
1315
+ # Apply the pathmap spec to each of the included file names, returning a
1316
+ # new file list with the modified paths. (See String#pathmap for
1317
+ # details.)
1318
+ #
1319
+ # source://rake//lib/rake/file_list.rb#272
1320
+ def pathmap(spec = T.unsafe(nil), &block); end
1321
+
1322
+ # source://rake//lib/rake/file_list.rb#77
1323
+ def permutation(*args, &block); end
1324
+
1325
+ # source://rake//lib/rake/file_list.rb#77
1326
+ def place(*args, &block); end
1327
+
1328
+ # source://rake//lib/rake/file_list.rb#77
1329
+ def pop(*args, &block); end
1330
+
1331
+ # source://rake//lib/rake/file_list.rb#77
1332
+ def prepend(*args, &block); end
1333
+
1334
+ # source://rake//lib/rake/file_list.rb#77
1335
+ def product(*args, &block); end
1336
+
1337
+ # source://rake//lib/rake/file_list.rb#77
1338
+ def push(*args, &block); end
1339
+
1340
+ # source://rake//lib/rake/file_list.rb#77
1341
+ def rassoc(*args, &block); end
1342
+
1343
+ # source://rake//lib/rake/file_list.rb#77
1344
+ def reduce(*args, &block); end
1345
+
1346
+ # source://rake//lib/rake/file_list.rb#68
1347
+ def reject(*args, &block); end
1348
+
1349
+ # source://rake//lib/rake/file_list.rb#77
1350
+ def reject!(*args, &block); end
1351
+
1352
+ # source://rake//lib/rake/file_list.rb#77
1353
+ def repeated_combination(*args, &block); end
1354
+
1355
+ # source://rake//lib/rake/file_list.rb#77
1356
+ def repeated_permutation(*args, &block); end
1357
+
1358
+ # source://rake//lib/rake/file_list.rb#77
1359
+ def replace(*args, &block); end
1360
+
1361
+ # Resolve all the pending adds now.
1362
+ #
1363
+ # source://rake//lib/rake/file_list.rb#210
1364
+ def resolve; end
1365
+
1366
+ # source://rake//lib/rake/file_list.rb#77
1367
+ def reverse(*args, &block); end
1368
+
1369
+ # source://rake//lib/rake/file_list.rb#77
1370
+ def reverse!(*args, &block); end
1371
+
1372
+ # source://rake//lib/rake/file_list.rb#77
1373
+ def reverse_each(*args, &block); end
1374
+
1375
+ # source://rake//lib/rake/file_list.rb#77
1376
+ def rindex(*args, &block); end
1377
+
1378
+ # source://rake//lib/rake/file_list.rb#77
1379
+ def rotate(*args, &block); end
1380
+
1381
+ # source://rake//lib/rake/file_list.rb#77
1382
+ def rotate!(*args, &block); end
1383
+
1384
+ # source://rake//lib/rake/file_list.rb#77
1385
+ def sample(*args, &block); end
1386
+
1387
+ # source://rake//lib/rake/file_list.rb#68
1388
+ def select(*args, &block); end
1389
+
1390
+ # source://rake//lib/rake/file_list.rb#77
1391
+ def select!(*args, &block); end
1392
+
1393
+ # source://rake//lib/rake/file_list.rb#77
1394
+ def shelljoin(*args, &block); end
1395
+
1396
+ # source://rake//lib/rake/file_list.rb#77
1397
+ def shift(*args, &block); end
1398
+
1399
+ # source://rake//lib/rake/file_list.rb#77
1400
+ def shuffle(*args, &block); end
1401
+
1402
+ # source://rake//lib/rake/file_list.rb#77
1403
+ def shuffle!(*args, &block); end
1404
+
1405
+ # source://rake//lib/rake/file_list.rb#77
1406
+ def size(*args, &block); end
1407
+
1408
+ # source://rake//lib/rake/file_list.rb#77
1409
+ def slice(*args, &block); end
1410
+
1411
+ # source://rake//lib/rake/file_list.rb#77
1412
+ def slice!(*args, &block); end
1413
+
1414
+ # source://rake//lib/rake/file_list.rb#77
1415
+ def slice_after(*args, &block); end
1416
+
1417
+ # source://rake//lib/rake/file_list.rb#77
1418
+ def slice_before(*args, &block); end
1419
+
1420
+ # source://rake//lib/rake/file_list.rb#77
1421
+ def slice_when(*args, &block); end
1422
+
1423
+ # source://rake//lib/rake/file_list.rb#68
1424
+ def sort(*args, &block); end
1425
+
1426
+ # source://rake//lib/rake/file_list.rb#77
1427
+ def sort!(*args, &block); end
1428
+
1429
+ # source://rake//lib/rake/file_list.rb#68
1430
+ def sort_by(*args, &block); end
1431
+
1432
+ # source://rake//lib/rake/file_list.rb#77
1433
+ def sort_by!(*args, &block); end
1434
+
1435
+ # Return a new FileList with the results of running +sub+ against each
1436
+ # element of the original list.
1437
+ #
1438
+ # Example:
1439
+ # FileList['a.c', 'b.c'].sub(/\.c$/, '.o') => ['a.o', 'b.o']
1440
+ #
1441
+ # source://rake//lib/rake/file_list.rb#242
1442
+ def sub(pat, rep); end
1443
+
1444
+ # Same as +sub+ except that the original file list is modified.
1445
+ #
1446
+ # source://rake//lib/rake/file_list.rb#258
1447
+ def sub!(pat, rep); end
1448
+
1449
+ # source://rake//lib/rake/file_list.rb#77
1450
+ def sum(*args, &block); end
1451
+
1452
+ # source://rake//lib/rake/file_list.rb#77
1453
+ def take(*args, &block); end
1454
+
1455
+ # source://rake//lib/rake/file_list.rb#77
1456
+ def take_while(*args, &block); end
1457
+
1458
+ # source://rake//lib/rake/file_list.rb#77
1459
+ def tally(*args, &block); end
1460
+
1461
+ # Return the internal array object.
1462
+ #
1463
+ # source://rake//lib/rake/file_list.rb#176
1464
+ def to_a; end
1465
+
1466
+ # Return the internal array object.
1467
+ #
1468
+ # source://rake//lib/rake/file_list.rb#182
1469
+ def to_ary; end
1470
+
1471
+ # source://rake//lib/rake/file_list.rb#77
1472
+ def to_h(*args, &block); end
1473
+
1474
+ # Convert a FileList to a string by joining all elements with a space.
1475
+ #
1476
+ # source://rake//lib/rake/file_list.rb#344
1477
+ def to_s; end
1478
+
1479
+ # source://rake//lib/rake/file_list.rb#77
1480
+ def to_set(*args, &block); end
1481
+
1482
+ # source://rake//lib/rake/file_list.rb#77
1483
+ def transpose(*args, &block); end
1484
+
1485
+ # source://rake//lib/rake/file_list.rb#77
1486
+ def union(*args, &block); end
1487
+
1488
+ # source://rake//lib/rake/file_list.rb#68
1489
+ def uniq(*args, &block); end
1490
+
1491
+ # source://rake//lib/rake/file_list.rb#77
1492
+ def uniq!(*args, &block); end
1493
+
1494
+ # source://rake//lib/rake/file_list.rb#77
1495
+ def unshift(*args, &block); end
1496
+
1497
+ # source://rake//lib/rake/file_list.rb#68
1498
+ def values_at(*args, &block); end
1499
+
1500
+ # source://rake//lib/rake/file_list.rb#77
1501
+ def zip(*args, &block); end
1502
+
1503
+ # source://rake//lib/rake/file_list.rb#68
1504
+ def |(*args, &block); end
1505
+
1506
+ private
1507
+
1508
+ # Add matching glob patterns.
1509
+ #
1510
+ # source://rake//lib/rake/file_list.rb#350
1511
+ def add_matching(pattern); end
1512
+
1513
+ # source://rake//lib/rake/file_list.rb#220
1514
+ def resolve_add(fn); end
1515
+
1516
+ # source://rake//lib/rake/file_list.rb#230
1517
+ def resolve_exclude; end
1518
+
1519
+ class << self
1520
+ # Create a new file list including the files listed. Similar to:
1521
+ #
1522
+ # FileList.new(*args)
1523
+ #
1524
+ # source://rake//lib/rake/file_list.rb#400
1525
+ def [](*args); end
1526
+
1527
+ # Get a sorted list of files matching the pattern. This method
1528
+ # should be preferred to Dir[pattern] and Dir.glob(pattern) because
1529
+ # the files returned are guaranteed to be sorted.
1530
+ #
1531
+ # source://rake//lib/rake/file_list.rb#407
1532
+ def glob(pattern, *args); end
1533
+ end
1534
+ end
1535
+
1536
+ # List of array methods (that are not in +Object+) that need to be
1537
+ # delegated.
1538
+ #
1539
+ # source://rake//lib/rake/file_list.rb#44
1540
+ Rake::FileList::ARRAY_METHODS = T.let(T.unsafe(nil), Array)
1541
+
1542
+ # source://rake//lib/rake/file_list.rb#381
1543
+ Rake::FileList::DEFAULT_IGNORE_PATTERNS = T.let(T.unsafe(nil), Array)
1544
+
1545
+ # source://rake//lib/rake/file_list.rb#387
1546
+ Rake::FileList::DEFAULT_IGNORE_PROCS = T.let(T.unsafe(nil), Array)
1547
+
1548
+ # source://rake//lib/rake/file_list.rb#61
1549
+ Rake::FileList::DELEGATING_METHODS = T.let(T.unsafe(nil), Array)
1550
+
1551
+ # source://rake//lib/rake/file_list.rb#86
1552
+ Rake::FileList::GLOB_PATTERN = T.let(T.unsafe(nil), Regexp)
1553
+
1554
+ # List of additional methods that must be delegated.
1555
+ #
1556
+ # source://rake//lib/rake/file_list.rb#47
1557
+ Rake::FileList::MUST_DEFINE = T.let(T.unsafe(nil), Array)
1558
+
1559
+ # List of methods that should not be delegated here (we define special
1560
+ # versions of them explicitly below).
1561
+ #
1562
+ # source://rake//lib/rake/file_list.rb#51
1563
+ Rake::FileList::MUST_NOT_DEFINE = T.let(T.unsafe(nil), Array)
1564
+
1565
+ # List of delegated methods that return new array values which need
1566
+ # wrapping.
1567
+ #
1568
+ # source://rake//lib/rake/file_list.rb#55
1569
+ Rake::FileList::SPECIAL_RETURN = T.let(T.unsafe(nil), Array)
1570
+
1571
+ # A FileTask is a task that includes time based dependencies. If any of a
1572
+ # FileTask's prerequisites have a timestamp that is later than the file
1573
+ # represented by this task, then the file must be rebuilt (using the
1574
+ # supplied actions).
1575
+ #
1576
+ # source://rake//lib/rake/file_task.rb#12
1577
+ class Rake::FileTask < ::Rake::Task
1578
+ # Is this file task needed? Yes if it doesn't exist, or if its time stamp
1579
+ # is out of date.
1580
+ #
1581
+ # @return [Boolean]
1582
+ #
1583
+ # source://rake//lib/rake/file_task.rb#16
1584
+ def needed?; end
1585
+
1586
+ # Time stamp for file task.
1587
+ #
1588
+ # source://rake//lib/rake/file_task.rb#21
1589
+ def timestamp; end
1590
+
1591
+ private
1592
+
1593
+ # Are there any prerequisites with a later time than the given time stamp?
1594
+ #
1595
+ # @return [Boolean]
1596
+ #
1597
+ # source://rake//lib/rake/file_task.rb#32
1598
+ def out_of_date?(stamp); end
1599
+
1600
+ class << self
1601
+ # Apply the scope to the task name according to the rules for this kind
1602
+ # of task. File based tasks ignore the scope when creating the name.
1603
+ #
1604
+ # source://rake//lib/rake/file_task.rb#49
1605
+ def scope_name(scope, task_name); end
1606
+ end
1607
+ end
1608
+
1609
+ # FileUtilsExt provides a custom version of the FileUtils methods
1610
+ # that respond to the <tt>verbose</tt> and <tt>nowrite</tt>
1611
+ # commands.
1612
+ #
1613
+ # source://rake//lib/rake/file_utils_ext.rb#10
1614
+ module Rake::FileUtilsExt
1615
+ include ::FileUtils::StreamUtils_
1616
+ include ::FileUtils
1617
+ extend ::FileUtils::StreamUtils_
1618
+ extend ::FileUtils
1619
+ extend ::Rake::FileUtilsExt
1620
+
1621
+ # source://rake//lib/rake/file_utils_ext.rb#34
1622
+ def cd(*args, **options, &block); end
1623
+
1624
+ # source://rake//lib/rake/file_utils_ext.rb#34
1625
+ def chdir(*args, **options, &block); end
1626
+
1627
+ # source://rake//lib/rake/file_utils_ext.rb#34
1628
+ def chmod(*args, **options, &block); end
1629
+
1630
+ # source://rake//lib/rake/file_utils_ext.rb#34
1631
+ def chmod_R(*args, **options, &block); end
1632
+
1633
+ # source://rake//lib/rake/file_utils_ext.rb#34
1634
+ def chown(*args, **options, &block); end
1635
+
1636
+ # source://rake//lib/rake/file_utils_ext.rb#34
1637
+ def chown_R(*args, **options, &block); end
1638
+
1639
+ # source://rake//lib/rake/file_utils_ext.rb#34
1640
+ def copy(*args, **options, &block); end
1641
+
1642
+ # source://rake//lib/rake/file_utils_ext.rb#34
1643
+ def cp(*args, **options, &block); end
1644
+
1645
+ # source://rake//lib/rake/file_utils_ext.rb#34
1646
+ def cp_lr(*args, **options, &block); end
1647
+
1648
+ # source://rake//lib/rake/file_utils_ext.rb#34
1649
+ def cp_r(*args, **options, &block); end
1650
+
1651
+ # source://rake//lib/rake/file_utils_ext.rb#34
1652
+ def install(*args, **options, &block); end
1653
+
1654
+ # source://rake//lib/rake/file_utils_ext.rb#34
1655
+ def link(*args, **options, &block); end
1656
+
1657
+ # source://rake//lib/rake/file_utils_ext.rb#34
1658
+ def ln(*args, **options, &block); end
1659
+
1660
+ # source://rake//lib/rake/file_utils_ext.rb#34
1661
+ def ln_s(*args, **options, &block); end
1662
+
1663
+ # source://rake//lib/rake/file_utils_ext.rb#34
1664
+ def ln_sf(*args, **options, &block); end
1665
+
1666
+ # source://rake//lib/rake/file_utils_ext.rb#34
1667
+ def ln_sr(*args, **options, &block); end
1668
+
1669
+ # source://rake//lib/rake/file_utils_ext.rb#34
1670
+ def makedirs(*args, **options, &block); end
1671
+
1672
+ # source://rake//lib/rake/file_utils_ext.rb#34
1673
+ def mkdir(*args, **options, &block); end
1674
+
1675
+ # source://rake//lib/rake/file_utils_ext.rb#34
1676
+ def mkdir_p(*args, **options, &block); end
1677
+
1678
+ # source://rake//lib/rake/file_utils_ext.rb#34
1679
+ def mkpath(*args, **options, &block); end
1680
+
1681
+ # source://rake//lib/rake/file_utils_ext.rb#34
1682
+ def move(*args, **options, &block); end
1683
+
1684
+ # source://rake//lib/rake/file_utils_ext.rb#34
1685
+ def mv(*args, **options, &block); end
1686
+
1687
+ # Get/set the nowrite flag controlling output from the FileUtils
1688
+ # utilities. If verbose is true, then the utility method is
1689
+ # echoed to standard output.
1690
+ #
1691
+ # Examples:
1692
+ # nowrite # return the current value of the
1693
+ # # nowrite flag
1694
+ # nowrite(v) # set the nowrite flag to _v_.
1695
+ # nowrite(v) { code } # Execute code with the nowrite flag set
1696
+ # # temporarily to _v_. Return to the
1697
+ # # original value when code is done.
1698
+ #
1699
+ # source://rake//lib/rake/file_utils_ext.rb#77
1700
+ def nowrite(value = T.unsafe(nil)); end
1701
+
1702
+ # Check that the options do not contain options not listed in
1703
+ # +optdecl+. An ArgumentError exception is thrown if non-declared
1704
+ # options are found.
1705
+ #
1706
+ # @raise [ArgumentError]
1707
+ #
1708
+ # source://rake//lib/rake/file_utils_ext.rb#123
1709
+ def rake_check_options(options, *optdecl); end
1710
+
1711
+ # Send the message to the default rake output (which is $stderr).
1712
+ #
1713
+ # source://rake//lib/rake/file_utils_ext.rb#116
1714
+ def rake_output_message(message); end
1715
+
1716
+ # source://rake//lib/rake/file_utils_ext.rb#34
1717
+ def remove(*args, **options, &block); end
1718
+
1719
+ # source://rake//lib/rake/file_utils_ext.rb#34
1720
+ def rm(*args, **options, &block); end
1721
+
1722
+ # source://rake//lib/rake/file_utils_ext.rb#34
1723
+ def rm_f(*args, **options, &block); end
1724
+
1725
+ # source://rake//lib/rake/file_utils_ext.rb#34
1726
+ def rm_r(*args, **options, &block); end
1727
+
1728
+ # source://rake//lib/rake/file_utils_ext.rb#34
1729
+ def rm_rf(*args, **options, &block); end
1730
+
1731
+ # source://rake//lib/rake/file_utils_ext.rb#34
1732
+ def rmdir(*args, **options, &block); end
1733
+
1734
+ # source://rake//lib/rake/file_utils_ext.rb#34
1735
+ def rmtree(*args, **options, &block); end
1736
+
1737
+ # source://rake//lib/rake/file_utils_ext.rb#34
1738
+ def safe_unlink(*args, **options, &block); end
1739
+
1740
+ # source://rake//lib/rake/file_utils_ext.rb#34
1741
+ def symlink(*args, **options, &block); end
1742
+
1743
+ # source://rake//lib/rake/file_utils_ext.rb#34
1744
+ def touch(*args, **options, &block); end
1745
+
1746
+ # Get/set the verbose flag controlling output from the FileUtils
1747
+ # utilities. If verbose is true, then the utility method is
1748
+ # echoed to standard output.
1749
+ #
1750
+ # Examples:
1751
+ # verbose # return the current value of the
1752
+ # # verbose flag
1753
+ # verbose(v) # set the verbose flag to _v_.
1754
+ # verbose(v) { code } # Execute code with the verbose flag set
1755
+ # # temporarily to _v_. Return to the
1756
+ # # original value when code is done.
1757
+ #
1758
+ # source://rake//lib/rake/file_utils_ext.rb#53
1759
+ def verbose(value = T.unsafe(nil)); end
1760
+
1761
+ # Use this function to prevent potentially destructive ruby code
1762
+ # from running when the :nowrite flag is set.
1763
+ #
1764
+ # Example:
1765
+ #
1766
+ # when_writing("Building Project") do
1767
+ # project.build
1768
+ # end
1769
+ #
1770
+ # The following code will build the project under normal
1771
+ # conditions. If the nowrite(true) flag is set, then the example
1772
+ # will print:
1773
+ #
1774
+ # DRYRUN: Building Project
1775
+ #
1776
+ # instead of actually building the project.
1777
+ #
1778
+ # source://rake//lib/rake/file_utils_ext.rb#107
1779
+ def when_writing(msg = T.unsafe(nil)); end
1780
+
1781
+ class << self
1782
+ # Returns the value of attribute nowrite_flag.
1783
+ #
1784
+ # source://rake//lib/rake/file_utils_ext.rb#14
1785
+ def nowrite_flag; end
1786
+
1787
+ # Sets the attribute nowrite_flag
1788
+ #
1789
+ # @param value the value to set the attribute nowrite_flag to.
1790
+ #
1791
+ # source://rake//lib/rake/file_utils_ext.rb#14
1792
+ def nowrite_flag=(_arg0); end
1793
+
1794
+ # Returns the value of attribute verbose_flag.
1795
+ #
1796
+ # source://rake//lib/rake/file_utils_ext.rb#14
1797
+ def verbose_flag; end
1798
+
1799
+ # Sets the attribute verbose_flag
1800
+ #
1801
+ # @param value the value to set the attribute verbose_flag to.
1802
+ #
1803
+ # source://rake//lib/rake/file_utils_ext.rb#14
1804
+ def verbose_flag=(_arg0); end
1805
+ end
1806
+ end
1807
+
1808
+ # source://rake//lib/rake/file_utils_ext.rb#17
1809
+ Rake::FileUtilsExt::DEFAULT = T.let(T.unsafe(nil), Object)
1810
+
1811
+ # InvocationChain tracks the chain of task invocations to detect
1812
+ # circular dependencies.
1813
+ #
1814
+ # source://rake//lib/rake/invocation_chain.rb#6
1815
+ class Rake::InvocationChain < ::Rake::LinkedList
1816
+ # Append an invocation to the chain of invocations. It is an error
1817
+ # if the invocation already listed.
1818
+ #
1819
+ # source://rake//lib/rake/invocation_chain.rb#15
1820
+ def append(invocation); end
1821
+
1822
+ # Is the invocation already in the chain?
1823
+ #
1824
+ # @return [Boolean]
1825
+ #
1826
+ # source://rake//lib/rake/invocation_chain.rb#9
1827
+ def member?(invocation); end
1828
+
1829
+ # Convert to string, ie: TOP => invocation => invocation
1830
+ #
1831
+ # source://rake//lib/rake/invocation_chain.rb#23
1832
+ def to_s; end
1833
+
1834
+ private
1835
+
1836
+ # source://rake//lib/rake/invocation_chain.rb#34
1837
+ def prefix; end
1838
+
1839
+ class << self
1840
+ # Class level append.
1841
+ #
1842
+ # source://rake//lib/rake/invocation_chain.rb#28
1843
+ def append(invocation, chain); end
1844
+ end
1845
+ end
1846
+
1847
+ # source://rake//lib/rake/invocation_chain.rb#55
1848
+ Rake::InvocationChain::EMPTY = T.let(T.unsafe(nil), Rake::InvocationChain::EmptyInvocationChain)
1849
+
1850
+ # Null object for an empty chain.
1851
+ #
1852
+ # source://rake//lib/rake/invocation_chain.rb#39
1853
+ class Rake::InvocationChain::EmptyInvocationChain < ::Rake::LinkedList::EmptyLinkedList
1854
+ # source://rake//lib/rake/invocation_chain.rb#46
1855
+ def append(invocation); end
1856
+
1857
+ # @return [Boolean]
1858
+ #
1859
+ # source://rake//lib/rake/invocation_chain.rb#42
1860
+ def member?(obj); end
1861
+
1862
+ # source://rake//lib/rake/invocation_chain.rb#50
1863
+ def to_s; end
1864
+ end
1865
+
1866
+ # source://rake//lib/rake/invocation_exception_mixin.rb#3
1867
+ module Rake::InvocationExceptionMixin
1868
+ # Return the invocation chain (list of Rake tasks) that were in
1869
+ # effect when this exception was detected by rake. May be null if
1870
+ # no tasks were active.
1871
+ #
1872
+ # source://rake//lib/rake/invocation_exception_mixin.rb#7
1873
+ def chain; end
1874
+
1875
+ # Set the invocation chain in effect when this exception was
1876
+ # detected.
1877
+ #
1878
+ # source://rake//lib/rake/invocation_exception_mixin.rb#13
1879
+ def chain=(value); end
1880
+ end
1881
+
1882
+ # source://rake//lib/rake/late_time.rb#17
1883
+ Rake::LATE = T.let(T.unsafe(nil), Rake::LateTime)
1884
+
1885
+ # LateTime is a fake timestamp that occurs _after_ any other time value.
1886
+ #
1887
+ # source://rake//lib/rake/late_time.rb#4
1888
+ class Rake::LateTime
1889
+ include ::Comparable
1890
+ include ::Singleton::SingletonInstanceMethods
1891
+ include ::Singleton
1892
+ extend ::Singleton::SingletonClassMethods
1893
+
1894
+ # source://rake//lib/rake/late_time.rb#8
1895
+ def <=>(other); end
1896
+
1897
+ # source://rake//lib/rake/late_time.rb#12
1898
+ def to_s; end
1899
+
1900
+ class << self
1901
+ private
1902
+
1903
+ def allocate; end
1904
+ def new(*_arg0); end
1905
+ end
1906
+ end
1907
+
1908
+ # Polylithic linked list structure used to implement several data
1909
+ # structures in Rake.
1910
+ #
1911
+ # source://rake//lib/rake/linked_list.rb#6
1912
+ class Rake::LinkedList
1913
+ include ::Enumerable
1914
+
1915
+ # @return [LinkedList] a new instance of LinkedList
1916
+ #
1917
+ # source://rake//lib/rake/linked_list.rb#84
1918
+ def initialize(head, tail = T.unsafe(nil)); end
1919
+
1920
+ # Lists are structurally equivalent.
1921
+ #
1922
+ # source://rake//lib/rake/linked_list.rb#25
1923
+ def ==(other); end
1924
+
1925
+ # Polymorphically add a new element to the head of a list. The
1926
+ # type of head node will be the same list type as the tail.
1927
+ #
1928
+ # source://rake//lib/rake/linked_list.rb#12
1929
+ def conj(item); end
1930
+
1931
+ # For each item in the list.
1932
+ #
1933
+ # source://rake//lib/rake/linked_list.rb#48
1934
+ def each; end
1935
+
1936
+ # Is the list empty?
1937
+ # .make guards against a list being empty making any instantiated LinkedList
1938
+ # object not empty by default
1939
+ # You should consider overriding this method if you implement your own .make method
1940
+ #
1941
+ # @return [Boolean]
1942
+ #
1943
+ # source://rake//lib/rake/linked_list.rb#20
1944
+ def empty?; end
1945
+
1946
+ # Returns the value of attribute head.
1947
+ #
1948
+ # source://rake//lib/rake/linked_list.rb#8
1949
+ def head; end
1950
+
1951
+ # Same as +to_s+, but with inspected items.
1952
+ #
1953
+ # source://rake//lib/rake/linked_list.rb#42
1954
+ def inspect; end
1955
+
1956
+ # Returns the value of attribute tail.
1957
+ #
1958
+ # source://rake//lib/rake/linked_list.rb#8
1959
+ def tail; end
1960
+
1961
+ # Convert to string: LL(item, item...)
1962
+ #
1963
+ # source://rake//lib/rake/linked_list.rb#36
1964
+ def to_s; end
1965
+
1966
+ class << self
1967
+ # Cons a new head onto the tail list.
1968
+ #
1969
+ # source://rake//lib/rake/linked_list.rb#73
1970
+ def cons(head, tail); end
1971
+
1972
+ # The standard empty list class for the given LinkedList class.
1973
+ #
1974
+ # source://rake//lib/rake/linked_list.rb#78
1975
+ def empty; end
1976
+
1977
+ # Make a list out of the given arguments. This method is
1978
+ # polymorphic
1979
+ #
1980
+ # source://rake//lib/rake/linked_list.rb#59
1981
+ def make(*args); end
1982
+ end
1983
+ end
1984
+
1985
+ # source://rake//lib/rake/linked_list.rb#110
1986
+ Rake::LinkedList::EMPTY = T.let(T.unsafe(nil), Rake::LinkedList::EmptyLinkedList)
1987
+
1988
+ # Represent an empty list, using the Null Object Pattern.
1989
+ #
1990
+ # When inheriting from the LinkedList class, you should implement
1991
+ # a type specific Empty class as well. Make sure you set the class
1992
+ # instance variable @parent to the associated list class (this
1993
+ # allows conj, cons and make to work polymorphically).
1994
+ #
1995
+ # source://rake//lib/rake/linked_list.rb#95
1996
+ class Rake::LinkedList::EmptyLinkedList < ::Rake::LinkedList
1997
+ # @return [EmptyLinkedList] a new instance of EmptyLinkedList
1998
+ #
1999
+ # source://rake//lib/rake/linked_list.rb#98
2000
+ def initialize; end
2001
+
2002
+ # @return [Boolean]
2003
+ #
2004
+ # source://rake//lib/rake/linked_list.rb#101
2005
+ def empty?; end
2006
+
2007
+ class << self
2008
+ # source://rake//lib/rake/linked_list.rb#105
2009
+ def cons(head, tail); end
2010
+ end
2011
+ end
2012
+
2013
+ # Same as a regular task, but the immediate prerequisites are done in
2014
+ # parallel using Ruby threads.
2015
+ #
2016
+ # source://rake//lib/rake/multi_task.rb#7
2017
+ class Rake::MultiTask < ::Rake::Task
2018
+ private
2019
+
2020
+ # source://rake//lib/rake/multi_task.rb#10
2021
+ def invoke_prerequisites(task_args, invocation_chain); end
2022
+ end
2023
+
2024
+ # The NameSpace class will lookup task names in the scope defined by a
2025
+ # +namespace+ command.
2026
+ #
2027
+ # source://rake//lib/rake/name_space.rb#6
2028
+ class Rake::NameSpace
2029
+ # Create a namespace lookup object using the given task manager
2030
+ # and the list of scopes.
2031
+ #
2032
+ # @return [NameSpace] a new instance of NameSpace
2033
+ #
2034
+ # source://rake//lib/rake/name_space.rb#12
2035
+ def initialize(task_manager, scope_list); end
2036
+
2037
+ # Lookup a task named +name+ in the namespace.
2038
+ #
2039
+ # source://rake//lib/rake/name_space.rb#20
2040
+ def [](name); end
2041
+
2042
+ # The scope of the namespace (a LinkedList)
2043
+ #
2044
+ # source://rake//lib/rake/name_space.rb#27
2045
+ def scope; end
2046
+
2047
+ # Return the list of tasks defined in this and nested namespaces.
2048
+ #
2049
+ # source://rake//lib/rake/name_space.rb#34
2050
+ def tasks; end
2051
+ end
2052
+
2053
+ # Include PrivateReader to use +private_reader+.
2054
+ #
2055
+ # source://rake//lib/rake/private_reader.rb#5
2056
+ module Rake::PrivateReader
2057
+ mixes_in_class_methods ::Rake::PrivateReader::ClassMethods
2058
+
2059
+ class << self
2060
+ # source://rake//lib/rake/private_reader.rb#7
2061
+ def included(base); end
2062
+ end
2063
+ end
2064
+
2065
+ # source://rake//lib/rake/private_reader.rb#11
2066
+ module Rake::PrivateReader::ClassMethods
2067
+ # Declare a list of private accessors
2068
+ #
2069
+ # source://rake//lib/rake/private_reader.rb#14
2070
+ def private_reader(*names); end
2071
+ end
2072
+
2073
+ # A Promise object represents a promise to do work (a chore) in the
2074
+ # future. The promise is created with a block and a list of
2075
+ # arguments for the block. Calling value will return the value of
2076
+ # the promised chore.
2077
+ #
2078
+ # Used by ThreadPool.
2079
+ #
2080
+ # source://rake//lib/rake/promise.rb#11
2081
+ class Rake::Promise
2082
+ # Create a promise to do the chore specified by the block.
2083
+ #
2084
+ # @return [Promise] a new instance of Promise
2085
+ #
2086
+ # source://rake//lib/rake/promise.rb#17
2087
+ def initialize(args, &block); end
2088
+
2089
+ # source://rake//lib/rake/promise.rb#14
2090
+ def recorder; end
2091
+
2092
+ # source://rake//lib/rake/promise.rb#14
2093
+ def recorder=(_arg0); end
2094
+
2095
+ # Return the value of this promise.
2096
+ #
2097
+ # If the promised chore is not yet complete, then do the work
2098
+ # synchronously. We will wait.
2099
+ #
2100
+ # source://rake//lib/rake/promise.rb#29
2101
+ def value; end
2102
+
2103
+ # If no one else is working this promise, go ahead and do the chore.
2104
+ #
2105
+ # source://rake//lib/rake/promise.rb#42
2106
+ def work; end
2107
+
2108
+ private
2109
+
2110
+ # Perform the chore promised
2111
+ #
2112
+ # source://rake//lib/rake/promise.rb#57
2113
+ def chore; end
2114
+
2115
+ # Are we done with the promise
2116
+ #
2117
+ # @return [Boolean]
2118
+ #
2119
+ # source://rake//lib/rake/promise.rb#83
2120
+ def complete?; end
2121
+
2122
+ # free up these items for the GC
2123
+ #
2124
+ # source://rake//lib/rake/promise.rb#88
2125
+ def discard; end
2126
+
2127
+ # Did the promise throw an error
2128
+ #
2129
+ # @return [Boolean]
2130
+ #
2131
+ # source://rake//lib/rake/promise.rb#78
2132
+ def error?; end
2133
+
2134
+ # Do we have a result for the promise
2135
+ #
2136
+ # @return [Boolean]
2137
+ #
2138
+ # source://rake//lib/rake/promise.rb#73
2139
+ def result?; end
2140
+
2141
+ # Record execution statistics if there is a recorder
2142
+ #
2143
+ # source://rake//lib/rake/promise.rb#94
2144
+ def stat(*args); end
2145
+ end
2146
+
2147
+ # source://rake//lib/rake/promise.rb#12
2148
+ Rake::Promise::NOT_SET = T.let(T.unsafe(nil), Object)
2149
+
2150
+ # Exit status class for times the system just gives us a nil.
2151
+ #
2152
+ # source://rake//lib/rake/pseudo_status.rb#6
2153
+ class Rake::PseudoStatus
2154
+ # @return [PseudoStatus] a new instance of PseudoStatus
2155
+ #
2156
+ # source://rake//lib/rake/pseudo_status.rb#9
2157
+ def initialize(code = T.unsafe(nil)); end
2158
+
2159
+ # source://rake//lib/rake/pseudo_status.rb#17
2160
+ def >>(n); end
2161
+
2162
+ # @return [Boolean]
2163
+ #
2164
+ # source://rake//lib/rake/pseudo_status.rb#25
2165
+ def exited?; end
2166
+
2167
+ # source://rake//lib/rake/pseudo_status.rb#7
2168
+ def exitstatus; end
2169
+
2170
+ # @return [Boolean]
2171
+ #
2172
+ # source://rake//lib/rake/pseudo_status.rb#21
2173
+ def stopped?; end
2174
+
2175
+ # source://rake//lib/rake/pseudo_status.rb#13
2176
+ def to_i; end
2177
+ end
2178
+
2179
+ # Error indicating a recursion overflow error in task selection.
2180
+ #
2181
+ # source://rake//lib/rake/rule_recursion_overflow_error.rb#5
2182
+ class Rake::RuleRecursionOverflowError < ::StandardError
2183
+ # @return [RuleRecursionOverflowError] a new instance of RuleRecursionOverflowError
2184
+ #
2185
+ # source://rake//lib/rake/rule_recursion_overflow_error.rb#6
2186
+ def initialize(*args); end
2187
+
2188
+ # source://rake//lib/rake/rule_recursion_overflow_error.rb#11
2189
+ def add_target(target); end
2190
+
2191
+ # source://rake//lib/rake/rule_recursion_overflow_error.rb#15
2192
+ def message; end
2193
+ end
2194
+
2195
+ # source://rake//lib/rake/scope.rb#3
2196
+ class Rake::Scope < ::Rake::LinkedList
2197
+ # Path for the scope.
2198
+ #
2199
+ # source://rake//lib/rake/scope.rb#6
2200
+ def path; end
2201
+
2202
+ # Path for the scope + the named path.
2203
+ #
2204
+ # source://rake//lib/rake/scope.rb#11
2205
+ def path_with_task_name(task_name); end
2206
+
2207
+ # Trim +n+ innermost scope levels from the scope. In no case will
2208
+ # this trim beyond the toplevel scope.
2209
+ #
2210
+ # source://rake//lib/rake/scope.rb#17
2211
+ def trim(n); end
2212
+ end
2213
+
2214
+ # Singleton null object for an empty scope.
2215
+ #
2216
+ # source://rake//lib/rake/scope.rb#41
2217
+ Rake::Scope::EMPTY = T.let(T.unsafe(nil), Rake::Scope::EmptyScope)
2218
+
2219
+ # Scope lists always end with an EmptyScope object. See Null
2220
+ # Object Pattern)
2221
+ #
2222
+ # source://rake//lib/rake/scope.rb#28
2223
+ class Rake::Scope::EmptyScope < ::Rake::LinkedList::EmptyLinkedList
2224
+ # source://rake//lib/rake/scope.rb#31
2225
+ def path; end
2226
+
2227
+ # source://rake//lib/rake/scope.rb#35
2228
+ def path_with_task_name(task_name); end
2229
+ end
2230
+
2231
+ # A Task is the basic unit of work in a Rakefile. Tasks have associated
2232
+ # actions (possibly more than one) and a list of prerequisites. When
2233
+ # invoked, a task will first ensure that all of its prerequisites have an
2234
+ # opportunity to run and then it will execute its own actions.
2235
+ #
2236
+ # Tasks are not usually created directly using the new method, but rather
2237
+ # use the +file+ and +task+ convenience methods.
2238
+ #
2239
+ # source://rake//lib/rake/task.rb#15
2240
+ class Rake::Task
2241
+ # Create a task named +task_name+ with no actions or prerequisites. Use
2242
+ # +enhance+ to add actions and prerequisites.
2243
+ #
2244
+ # @return [Task] a new instance of Task
2245
+ #
2246
+ # source://rake//lib/rake/task.rb#99
2247
+ def initialize(task_name, app); end
2248
+
2249
+ # List of actions attached to a task.
2250
+ #
2251
+ # source://rake//lib/rake/task.rb#24
2252
+ def actions; end
2253
+
2254
+ # Add a description to the task. The description can consist of an option
2255
+ # argument list (enclosed brackets) and an optional comment.
2256
+ #
2257
+ # source://rake//lib/rake/task.rb#298
2258
+ def add_description(description); end
2259
+
2260
+ # List of all unique prerequisite tasks including prerequisite tasks'
2261
+ # prerequisites.
2262
+ # Includes self when cyclic dependencies are found.
2263
+ #
2264
+ # source://rake//lib/rake/task.rb#77
2265
+ def all_prerequisite_tasks; end
2266
+
2267
+ # Has this task already been invoked? Already invoked tasks
2268
+ # will be skipped unless you reenable them.
2269
+ #
2270
+ # source://rake//lib/rake/task.rb#39
2271
+ def already_invoked; end
2272
+
2273
+ # Application owning this task.
2274
+ #
2275
+ # source://rake//lib/rake/task.rb#27
2276
+ def application; end
2277
+
2278
+ # Application owning this task.
2279
+ #
2280
+ # source://rake//lib/rake/task.rb#27
2281
+ def application=(_arg0); end
2282
+
2283
+ # Argument description (nil if none).
2284
+ #
2285
+ # source://rake//lib/rake/task.rb#136
2286
+ def arg_description; end
2287
+
2288
+ # Name of arguments for this task.
2289
+ #
2290
+ # source://rake//lib/rake/task.rb#141
2291
+ def arg_names; end
2292
+
2293
+ # Clear the existing prerequisites, actions, comments, and arguments of a rake task.
2294
+ #
2295
+ # source://rake//lib/rake/task.rb#153
2296
+ def clear; end
2297
+
2298
+ # Clear the existing actions on a rake task.
2299
+ #
2300
+ # source://rake//lib/rake/task.rb#168
2301
+ def clear_actions; end
2302
+
2303
+ # Clear the existing arguments on a rake task.
2304
+ #
2305
+ # source://rake//lib/rake/task.rb#180
2306
+ def clear_args; end
2307
+
2308
+ # Clear the existing comments on a rake task.
2309
+ #
2310
+ # source://rake//lib/rake/task.rb#174
2311
+ def clear_comments; end
2312
+
2313
+ # Clear the existing prerequisites of a rake task.
2314
+ #
2315
+ # source://rake//lib/rake/task.rb#162
2316
+ def clear_prerequisites; end
2317
+
2318
+ # First line (or sentence) of all comments. Multiple comments are
2319
+ # separated by a "/".
2320
+ #
2321
+ # source://rake//lib/rake/task.rb#322
2322
+ def comment; end
2323
+
2324
+ # source://rake//lib/rake/task.rb#304
2325
+ def comment=(comment); end
2326
+
2327
+ # Enhance a task with prerequisites or actions. Returns self.
2328
+ #
2329
+ # source://rake//lib/rake/task.rb#115
2330
+ def enhance(deps = T.unsafe(nil), &block); end
2331
+
2332
+ # Execute the actions associated with this task.
2333
+ #
2334
+ # source://rake//lib/rake/task.rb#270
2335
+ def execute(args = T.unsafe(nil)); end
2336
+
2337
+ # Full collection of comments. Multiple comments are separated by
2338
+ # newlines.
2339
+ #
2340
+ # source://rake//lib/rake/task.rb#316
2341
+ def full_comment; end
2342
+
2343
+ # source://rake//lib/rake/task.rb#46
2344
+ def inspect; end
2345
+
2346
+ # Return a string describing the internal state of a task. Useful for
2347
+ # debugging.
2348
+ #
2349
+ # source://rake//lib/rake/task.rb#354
2350
+ def investigation; end
2351
+
2352
+ # Invoke the task if it is needed. Prerequisites are invoked first.
2353
+ #
2354
+ # source://rake//lib/rake/task.rb#186
2355
+ def invoke(*args); end
2356
+
2357
+ # Invoke all the prerequisites of a task.
2358
+ #
2359
+ # source://rake//lib/rake/task.rb#237
2360
+ def invoke_prerequisites(task_args, invocation_chain); end
2361
+
2362
+ # Invoke all the prerequisites of a task in parallel.
2363
+ #
2364
+ # source://rake//lib/rake/task.rb#249
2365
+ def invoke_prerequisites_concurrently(task_args, invocation_chain); end
2366
+
2367
+ # File/Line locations of each of the task definitions for this
2368
+ # task (only valid if the task was defined with the detect
2369
+ # location option set).
2370
+ #
2371
+ # source://rake//lib/rake/task.rb#35
2372
+ def locations; end
2373
+
2374
+ # Name of the task, including any namespace qualifiers.
2375
+ #
2376
+ # source://rake//lib/rake/task.rb#122
2377
+ def name; end
2378
+
2379
+ # Name of task with argument list description.
2380
+ #
2381
+ # source://rake//lib/rake/task.rb#127
2382
+ def name_with_args; end
2383
+
2384
+ # Is this task needed?
2385
+ #
2386
+ # @return [Boolean]
2387
+ #
2388
+ # source://rake//lib/rake/task.rb#286
2389
+ def needed?; end
2390
+
2391
+ # List of order only prerequisites for a task.
2392
+ #
2393
+ # source://rake//lib/rake/task.rb#21
2394
+ def order_only_prerequisites; end
2395
+
2396
+ # List of prerequisites for a task.
2397
+ #
2398
+ # source://rake//lib/rake/task.rb#17
2399
+ def prereqs; end
2400
+
2401
+ # List of prerequisite tasks
2402
+ #
2403
+ # source://rake//lib/rake/task.rb#61
2404
+ def prerequisite_tasks; end
2405
+
2406
+ # List of prerequisites for a task.
2407
+ #
2408
+ # source://rake//lib/rake/task.rb#17
2409
+ def prerequisites; end
2410
+
2411
+ # Reenable the task, allowing its tasks to be executed if the task
2412
+ # is invoked again.
2413
+ #
2414
+ # source://rake//lib/rake/task.rb#147
2415
+ def reenable; end
2416
+
2417
+ # Array of nested namespaces names used for task lookup by this task.
2418
+ #
2419
+ # source://rake//lib/rake/task.rb#30
2420
+ def scope; end
2421
+
2422
+ # Set the names of the arguments for this task. +args+ should be
2423
+ # an array of symbols, one for each argument name.
2424
+ #
2425
+ # source://rake//lib/rake/task.rb#348
2426
+ def set_arg_names(args); end
2427
+
2428
+ # First source from a rule (nil if no sources)
2429
+ #
2430
+ # source://rake//lib/rake/task.rb#93
2431
+ def source; end
2432
+
2433
+ # source://rake//lib/rake/task.rb#52
2434
+ def sources; end
2435
+
2436
+ # List of sources for task.
2437
+ #
2438
+ # source://rake//lib/rake/task.rb#51
2439
+ def sources=(_arg0); end
2440
+
2441
+ # Timestamp for this task. Basic tasks return the current time for their
2442
+ # time stamp. Other tasks can be more sophisticated.
2443
+ #
2444
+ # source://rake//lib/rake/task.rb#292
2445
+ def timestamp; end
2446
+
2447
+ # Return task name
2448
+ #
2449
+ # source://rake//lib/rake/task.rb#42
2450
+ def to_s; end
2451
+
2452
+ # Add order only dependencies.
2453
+ #
2454
+ # source://rake//lib/rake/task.rb#379
2455
+ def |(deps); end
2456
+
2457
+ protected
2458
+
2459
+ # source://rake//lib/rake/task.rb#83
2460
+ def collect_prerequisites(seen); end
2461
+
2462
+ # Same as invoke, but explicitly pass a call chain to detect
2463
+ # circular dependencies.
2464
+ #
2465
+ # If multiple tasks depend on this
2466
+ # one in parallel, they will all fail if the first execution of
2467
+ # this task fails.
2468
+ #
2469
+ # source://rake//lib/rake/task.rb#197
2470
+ def invoke_with_call_chain(task_args, invocation_chain); end
2471
+
2472
+ private
2473
+
2474
+ # source://rake//lib/rake/task.rb#229
2475
+ def add_chain_to(exception, new_chain); end
2476
+
2477
+ # source://rake//lib/rake/task.rb#308
2478
+ def add_comment(comment); end
2479
+
2480
+ # Get the first sentence in a string. The sentence is terminated
2481
+ # by the first period, exclamation mark, or the end of the line.
2482
+ # Decimal points do not count as periods.
2483
+ #
2484
+ # source://rake//lib/rake/task.rb#341
2485
+ def first_sentence(string); end
2486
+
2487
+ # Format the trace flags for display.
2488
+ #
2489
+ # source://rake//lib/rake/task.rb#261
2490
+ def format_trace_flags; end
2491
+
2492
+ # source://rake//lib/rake/task.rb#65
2493
+ def lookup_prerequisite(prerequisite_name); end
2494
+
2495
+ # Transform the list of comments as specified by the block and
2496
+ # join with the separator.
2497
+ #
2498
+ # source://rake//lib/rake/task.rb#328
2499
+ def transform_comments(separator, &block); end
2500
+
2501
+ class << self
2502
+ # Return a task with the given name. If the task is not currently
2503
+ # known, try to synthesize one from the defined rules. If no rules are
2504
+ # found, but an existing file matches the task name, assume it is a file
2505
+ # task with no dependencies or actions.
2506
+ #
2507
+ # source://rake//lib/rake/task.rb#404
2508
+ def [](task_name); end
2509
+
2510
+ # Clear the task list. This cause rake to immediately forget all the
2511
+ # tasks that have been assigned. (Normally used in the unit tests.)
2512
+ #
2513
+ # source://rake//lib/rake/task.rb#391
2514
+ def clear; end
2515
+
2516
+ # Define a rule for synthesizing tasks.
2517
+ #
2518
+ # source://rake//lib/rake/task.rb#421
2519
+ def create_rule(*args, &block); end
2520
+
2521
+ # Define a task given +args+ and an option block. If a rule with the
2522
+ # given name already exists, the prerequisites and actions are added to
2523
+ # the existing task. Returns the defined task.
2524
+ #
2525
+ # source://rake//lib/rake/task.rb#416
2526
+ def define_task(*args, &block); end
2527
+
2528
+ # Format dependencies parameter to pass to task.
2529
+ #
2530
+ # source://rake//lib/rake/task.rb#373
2531
+ def format_deps(deps); end
2532
+
2533
+ # Apply the scope to the task name according to the rules for
2534
+ # this kind of task. Generic tasks will accept the scope as
2535
+ # part of the name.
2536
+ #
2537
+ # source://rake//lib/rake/task.rb#428
2538
+ def scope_name(scope, task_name); end
2539
+
2540
+ # TRUE if the task name is already defined.
2541
+ #
2542
+ # @return [Boolean]
2543
+ #
2544
+ # source://rake//lib/rake/task.rb#409
2545
+ def task_defined?(task_name); end
2546
+
2547
+ # List of all defined tasks.
2548
+ #
2549
+ # source://rake//lib/rake/task.rb#396
2550
+ def tasks; end
2551
+ end
2552
+ end
2553
+
2554
+ # Error indicating an ill-formed task declaration.
2555
+ #
2556
+ # source://rake//lib/rake/task_argument_error.rb#5
2557
+ class Rake::TaskArgumentError < ::ArgumentError; end
2558
+
2559
+ # TaskArguments manage the arguments passed to a task.
2560
+ #
2561
+ # source://rake//lib/rake/task_arguments.rb#7
2562
+ class Rake::TaskArguments
2563
+ include ::Enumerable
2564
+
2565
+ # Create a TaskArgument object with a list of argument +names+ and a set
2566
+ # of associated +values+. +parent+ is the parent argument object.
2567
+ #
2568
+ # @return [TaskArguments] a new instance of TaskArguments
2569
+ #
2570
+ # source://rake//lib/rake/task_arguments.rb#15
2571
+ def initialize(names, values, parent = T.unsafe(nil)); end
2572
+
2573
+ # Find an argument value by name or index.
2574
+ #
2575
+ # source://rake//lib/rake/task_arguments.rb#44
2576
+ def [](index); end
2577
+
2578
+ # Enumerates the arguments and their values
2579
+ #
2580
+ # source://rake//lib/rake/task_arguments.rb#56
2581
+ def each(&block); end
2582
+
2583
+ # Retrieve the list of values not associated with named arguments
2584
+ #
2585
+ # source://rake//lib/rake/task_arguments.rb#32
2586
+ def extras; end
2587
+
2588
+ # source://rake//lib/rake/task_arguments.rb#93
2589
+ def fetch(*args, &block); end
2590
+
2591
+ # Returns true if +key+ is one of the arguments
2592
+ #
2593
+ # @return [Boolean]
2594
+ #
2595
+ # source://rake//lib/rake/task_arguments.rb#88
2596
+ def has_key?(key); end
2597
+
2598
+ # source://rake//lib/rake/task_arguments.rb#79
2599
+ def inspect; end
2600
+
2601
+ # Returns true if +key+ is one of the arguments
2602
+ #
2603
+ # @return [Boolean]
2604
+ #
2605
+ # source://rake//lib/rake/task_arguments.rb#88
2606
+ def key?(key); end
2607
+
2608
+ # Returns the value of the given argument via method_missing
2609
+ #
2610
+ # source://rake//lib/rake/task_arguments.rb#66
2611
+ def method_missing(sym, *args); end
2612
+
2613
+ # Argument names
2614
+ #
2615
+ # source://rake//lib/rake/task_arguments.rb#11
2616
+ def names; end
2617
+
2618
+ # Create a new argument scope using the prerequisite argument
2619
+ # names.
2620
+ #
2621
+ # source://rake//lib/rake/task_arguments.rb#38
2622
+ def new_scope(names); end
2623
+
2624
+ # Retrieve the complete array of sequential values
2625
+ #
2626
+ # source://rake//lib/rake/task_arguments.rb#27
2627
+ def to_a; end
2628
+
2629
+ # Returns a Hash of arguments and their values
2630
+ #
2631
+ # source://rake//lib/rake/task_arguments.rb#71
2632
+ def to_hash; end
2633
+
2634
+ # source://rake//lib/rake/task_arguments.rb#75
2635
+ def to_s; end
2636
+
2637
+ # Extracts the argument values at +keys+
2638
+ #
2639
+ # source://rake//lib/rake/task_arguments.rb#61
2640
+ def values_at(*keys); end
2641
+
2642
+ # Specify a hash of default values for task arguments. Use the
2643
+ # defaults only if there is no specific value for the given
2644
+ # argument.
2645
+ #
2646
+ # source://rake//lib/rake/task_arguments.rb#51
2647
+ def with_defaults(defaults); end
2648
+
2649
+ protected
2650
+
2651
+ # source://rake//lib/rake/task_arguments.rb#99
2652
+ def lookup(name); end
2653
+ end
2654
+
2655
+ # Base class for Task Libraries.
2656
+ #
2657
+ # source://rake//lib/rake/tasklib.rb#7
2658
+ class Rake::TaskLib
2659
+ include ::Rake::Cloneable
2660
+ include ::FileUtils::StreamUtils_
2661
+ include ::FileUtils
2662
+ include ::Rake::FileUtilsExt
2663
+ include ::Rake::DSL
2664
+ end
2665
+
2666
+ # The TaskManager module is a mixin for managing tasks.
2667
+ #
2668
+ # source://rake//lib/rake/task_manager.rb#5
2669
+ module Rake::TaskManager
2670
+ # source://rake//lib/rake/task_manager.rb#9
2671
+ def initialize; end
2672
+
2673
+ # Find a matching task for +task_name+.
2674
+ #
2675
+ # source://rake//lib/rake/task_manager.rb#54
2676
+ def [](task_name, scopes = T.unsafe(nil)); end
2677
+
2678
+ # Clear all tasks in this application.
2679
+ #
2680
+ # source://rake//lib/rake/task_manager.rb#182
2681
+ def clear; end
2682
+
2683
+ # source://rake//lib/rake/task_manager.rb#17
2684
+ def create_rule(*args, &block); end
2685
+
2686
+ # Return the list of scope names currently active in the task
2687
+ # manager.
2688
+ #
2689
+ # source://rake//lib/rake/task_manager.rb#222
2690
+ def current_scope; end
2691
+
2692
+ # source://rake//lib/rake/task_manager.rb#23
2693
+ def define_task(task_class, *args, &block); end
2694
+
2695
+ # If a rule can be found that matches the task name, enhance the
2696
+ # task with the prerequisites and actions from the rule. Set the
2697
+ # source attribute of the task appropriately for the rule. Return
2698
+ # the enhanced task or nil of no rule was found.
2699
+ #
2700
+ # source://rake//lib/rake/task_manager.rb#151
2701
+ def enhance_with_matching_rule(task_name, level = T.unsafe(nil)); end
2702
+
2703
+ # source://rake//lib/rake/task_manager.rb#68
2704
+ def generate_did_you_mean_suggestions(task_name); end
2705
+
2706
+ # source://rake//lib/rake/task_manager.rb#62
2707
+ def generate_message_for_undefined_task(task_name); end
2708
+
2709
+ # Evaluate the block in a nested namespace named +name+. Create
2710
+ # an anonymous namespace if +name+ is nil.
2711
+ #
2712
+ # source://rake//lib/rake/task_manager.rb#228
2713
+ def in_namespace(name); end
2714
+
2715
+ # Lookup a task. Return an existing task if found, otherwise
2716
+ # create a task of the current type.
2717
+ #
2718
+ # source://rake//lib/rake/task_manager.rb#49
2719
+ def intern(task_class, task_name); end
2720
+
2721
+ # Track the last comment made in the Rakefile.
2722
+ #
2723
+ # source://rake//lib/rake/task_manager.rb#7
2724
+ def last_description; end
2725
+
2726
+ # Track the last comment made in the Rakefile.
2727
+ #
2728
+ # source://rake//lib/rake/task_manager.rb#7
2729
+ def last_description=(_arg0); end
2730
+
2731
+ # Lookup a task, using scope and the scope hints in the task name.
2732
+ # This method performs straight lookups without trying to
2733
+ # synthesize file tasks or rules. Special scope names (e.g. '^')
2734
+ # are recognized. If no scope argument is supplied, use the
2735
+ # current scope. Return nil if the task cannot be found.
2736
+ #
2737
+ # source://rake//lib/rake/task_manager.rb#192
2738
+ def lookup(task_name, initial_scope = T.unsafe(nil)); end
2739
+
2740
+ # Resolve the arguments for a task/rule. Returns a tuple of
2741
+ # [task_name, arg_name_list, prerequisites, order_only_prerequisites].
2742
+ #
2743
+ # source://rake//lib/rake/task_manager.rb#88
2744
+ def resolve_args(args); end
2745
+
2746
+ # source://rake//lib/rake/task_manager.rb#81
2747
+ def synthesize_file_task(task_name); end
2748
+
2749
+ # List of all defined tasks in this application.
2750
+ #
2751
+ # source://rake//lib/rake/task_manager.rb#168
2752
+ def tasks; end
2753
+
2754
+ # List of all the tasks defined in the given scope (and its
2755
+ # sub-scopes).
2756
+ #
2757
+ # source://rake//lib/rake/task_manager.rb#174
2758
+ def tasks_in_scope(scope); end
2759
+
2760
+ private
2761
+
2762
+ # Add a location to the locations field of the given task.
2763
+ #
2764
+ # source://rake//lib/rake/task_manager.rb#241
2765
+ def add_location(task); end
2766
+
2767
+ # Attempt to create a rule given the list of prerequisites.
2768
+ #
2769
+ # source://rake//lib/rake/task_manager.rb#271
2770
+ def attempt_rule(task_name, task_pattern, args, extensions, block, level); end
2771
+
2772
+ # Find the location that called into the dsl layer.
2773
+ #
2774
+ # source://rake//lib/rake/task_manager.rb#248
2775
+ def find_location; end
2776
+
2777
+ # Generate an anonymous namespace name.
2778
+ #
2779
+ # source://rake//lib/rake/task_manager.rb#259
2780
+ def generate_name; end
2781
+
2782
+ # Return the current description, clearing it in the process.
2783
+ #
2784
+ # source://rake//lib/rake/task_manager.rb#319
2785
+ def get_description(task); end
2786
+
2787
+ # Lookup the task name
2788
+ #
2789
+ # source://rake//lib/rake/task_manager.rb#208
2790
+ def lookup_in_scope(name, scope); end
2791
+
2792
+ # Make a list of sources from the list of file name extensions /
2793
+ # translation procs.
2794
+ #
2795
+ # source://rake//lib/rake/task_manager.rb#293
2796
+ def make_sources(task_name, task_pattern, extensions); end
2797
+
2798
+ # Resolve task arguments for a task or rule when there are
2799
+ # dependencies declared.
2800
+ #
2801
+ # The patterns recognized by this argument resolving function are:
2802
+ #
2803
+ # task :t, order_only: [:e]
2804
+ # task :t => [:d]
2805
+ # task :t => [:d], order_only: [:e]
2806
+ # task :t, [a] => [:d]
2807
+ # task :t, [a] => [:d], order_only: [:e]
2808
+ #
2809
+ # source://rake//lib/rake/task_manager.rb#127
2810
+ def resolve_args_with_dependencies(args, hash); end
2811
+
2812
+ # Resolve task arguments for a task or rule when there are no
2813
+ # dependencies declared.
2814
+ #
2815
+ # The patterns recognized by this argument resolving function are:
2816
+ #
2817
+ # task :t
2818
+ # task :t, [:a]
2819
+ #
2820
+ # source://rake//lib/rake/task_manager.rb#105
2821
+ def resolve_args_without_dependencies(args); end
2822
+
2823
+ # source://rake//lib/rake/task_manager.rb#265
2824
+ def trace_rule(level, message); end
2825
+
2826
+ class << self
2827
+ # source://rake//lib/rake/task_manager.rb#326
2828
+ def record_task_metadata; end
2829
+
2830
+ # source://rake//lib/rake/task_manager.rb#326
2831
+ def record_task_metadata=(_arg0); end
2832
+ end
2833
+ end
2834
+
2835
+ # source://rake//lib/rake/thread_history_display.rb#6
2836
+ class Rake::ThreadHistoryDisplay
2837
+ include ::Rake::PrivateReader
2838
+ extend ::Rake::PrivateReader::ClassMethods
2839
+
2840
+ # @return [ThreadHistoryDisplay] a new instance of ThreadHistoryDisplay
2841
+ #
2842
+ # source://rake//lib/rake/thread_history_display.rb#11
2843
+ def initialize(stats); end
2844
+
2845
+ # source://rake//lib/rake/thread_history_display.rb#17
2846
+ def show; end
2847
+
2848
+ private
2849
+
2850
+ # source://rake//lib/rake/private_reader.rb#15
2851
+ def items; end
2852
+
2853
+ # source://rake//lib/rake/thread_history_display.rb#35
2854
+ def rename(hash, key, renames); end
2855
+
2856
+ # source://rake//lib/rake/private_reader.rb#15
2857
+ def stats; end
2858
+
2859
+ # source://rake//lib/rake/private_reader.rb#15
2860
+ def threads; end
2861
+ end
2862
+
2863
+ # source://rake//lib/rake/thread_pool.rb#7
2864
+ class Rake::ThreadPool
2865
+ # Creates a ThreadPool object. The +thread_count+ parameter is the size
2866
+ # of the pool.
2867
+ #
2868
+ # @return [ThreadPool] a new instance of ThreadPool
2869
+ #
2870
+ # source://rake//lib/rake/thread_pool.rb#11
2871
+ def initialize(thread_count); end
2872
+
2873
+ # Creates a future executed by the +ThreadPool+.
2874
+ #
2875
+ # The args are passed to the block when executing (similarly to
2876
+ # Thread#new) The return value is an object representing
2877
+ # a future which has been created and added to the queue in the
2878
+ # pool. Sending #value to the object will sleep the
2879
+ # current thread until the future is finished and will return the
2880
+ # result (or raise an exception thrown from the future)
2881
+ #
2882
+ # source://rake//lib/rake/thread_pool.rb#33
2883
+ def future(*args, &block); end
2884
+
2885
+ # Enable the gathering of history events.
2886
+ #
2887
+ # source://rake//lib/rake/thread_pool.rb#68
2888
+ def gather_history; end
2889
+
2890
+ # Return a array of history events for the thread pool.
2891
+ #
2892
+ # History gathering must be enabled to be able to see the events
2893
+ # (see #gather_history). Best to call this when the job is
2894
+ # complete (i.e. after ThreadPool#join is called).
2895
+ #
2896
+ # source://rake//lib/rake/thread_pool.rb#77
2897
+ def history; end
2898
+
2899
+ # Waits until the queue of futures is empty and all threads have exited.
2900
+ #
2901
+ # source://rake//lib/rake/thread_pool.rb#44
2902
+ def join; end
2903
+
2904
+ # Return a hash of always collected statistics for the thread pool.
2905
+ #
2906
+ # source://rake//lib/rake/thread_pool.rb#84
2907
+ def statistics; end
2908
+
2909
+ private
2910
+
2911
+ # for testing only
2912
+ #
2913
+ # source://rake//lib/rake/thread_pool.rb#158
2914
+ def __queue__; end
2915
+
2916
+ # processes one item on the queue. Returns true if there was an
2917
+ # item to process, false if there was no item
2918
+ #
2919
+ # source://rake//lib/rake/thread_pool.rb#95
2920
+ def process_queue_item; end
2921
+
2922
+ # source://rake//lib/rake/thread_pool.rb#111
2923
+ def safe_thread_count; end
2924
+
2925
+ # source://rake//lib/rake/thread_pool.rb#117
2926
+ def start_thread; end
2927
+
2928
+ # source://rake//lib/rake/thread_pool.rb#145
2929
+ def stat(event, data = T.unsafe(nil)); end
2930
+ end
2931
+
2932
+ # source://rake//lib/rake/trace_output.rb#3
2933
+ module Rake::TraceOutput
2934
+ # Write trace output to output stream +out+.
2935
+ #
2936
+ # The write is done as a single IO call (to print) to lessen the
2937
+ # chance that the trace output is interrupted by other tasks also
2938
+ # producing output.
2939
+ #
2940
+ # source://rake//lib/rake/trace_output.rb#10
2941
+ def trace_on(out, *strings); end
2942
+ end
2943
+
2944
+ # source://rake//lib/rake/version.rb#3
2945
+ Rake::VERSION = T.let(T.unsafe(nil), String)
2946
+
2947
+ # source://rake//lib/rake/version.rb#5
2948
+ module Rake::Version; end
2949
+
2950
+ # source://rake//lib/rake/version.rb#6
2951
+ Rake::Version::BUILD = T.let(T.unsafe(nil), String)
2952
+
2953
+ # source://rake//lib/rake/version.rb#6
2954
+ Rake::Version::MAJOR = T.let(T.unsafe(nil), String)
2955
+
2956
+ # source://rake//lib/rake/version.rb#6
2957
+ Rake::Version::MINOR = T.let(T.unsafe(nil), String)
2958
+
2959
+ # source://rake//lib/rake/version.rb#8
2960
+ Rake::Version::NUMBERS = T.let(T.unsafe(nil), Array)
2961
+
2962
+ # source://rake//lib/rake/version.rb#6
2963
+ Rake::Version::OTHER = T.let(T.unsafe(nil), Array)
2964
+
2965
+ # Win 32 interface methods for Rake. Windows specific functionality
2966
+ # will be placed here to collect that knowledge in one spot.
2967
+ #
2968
+ # source://rake//lib/rake/win32.rb#7
2969
+ module Rake::Win32
2970
+ class << self
2971
+ # Normalize a win32 path so that the slashes are all forward slashes.
2972
+ #
2973
+ # source://rake//lib/rake/win32.rb#45
2974
+ def normalize(path); end
2975
+
2976
+ # The standard directory containing system wide rake files on
2977
+ # Win 32 systems. Try the following environment variables (in
2978
+ # order):
2979
+ #
2980
+ # * HOME
2981
+ # * HOMEDRIVE + HOMEPATH
2982
+ # * APPDATA
2983
+ # * USERPROFILE
2984
+ #
2985
+ # If the above are not defined, the return nil.
2986
+ #
2987
+ # @raise [Win32HomeError]
2988
+ #
2989
+ # source://rake//lib/rake/win32.rb#30
2990
+ def win32_system_dir; end
2991
+
2992
+ # True if running on a windows system.
2993
+ #
2994
+ # @return [Boolean]
2995
+ #
2996
+ # source://rake//lib/rake/win32.rb#16
2997
+ def windows?; end
2998
+ end
2999
+ end
3000
+
3001
+ # Error indicating a problem in locating the home directory on a
3002
+ # Win32 system.
3003
+ #
3004
+ # source://rake//lib/rake/win32.rb#11
3005
+ class Rake::Win32::Win32HomeError < ::RuntimeError; end
3006
+
3007
+ # source://rake//lib/rake.rb#71
3008
+ RakeFileUtils = Rake::FileUtilsExt
3009
+
3010
+ # source://rake//lib/rake/ext/string.rb#4
3011
+ class String
3012
+ include ::Comparable
3013
+
3014
+ # source://rake//lib/rake/ext/string.rb#14
3015
+ def ext(newext = T.unsafe(nil)); end
3016
+
3017
+ # source://rake//lib/rake/ext/string.rb#138
3018
+ def pathmap(spec = T.unsafe(nil), &block); end
3019
+
3020
+ protected
3021
+
3022
+ # source://rake//lib/rake/ext/string.rb#27
3023
+ def pathmap_explode; end
3024
+
3025
+ # source://rake//lib/rake/ext/string.rb#41
3026
+ def pathmap_partial(n); end
3027
+
3028
+ # source://rake//lib/rake/ext/string.rb#59
3029
+ def pathmap_replace(patterns, &block); end
3030
+ end