anansi 0.0.0 → 0.0.2

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