packwerk 3.2.3 → 3.3.1

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