method
const_warning
ruby latest stable - Class:
Rake::Application
Method deprecated or moved
This method is deprecated or moved on the latest stable version. The last existing version (v1_9_3_392) is shown here.
const_warning(const_name)public
Warn about deprecated use of top level constant names.
# File lib/rake/application.rb, line 575
def const_warning(const_name)
@const_warning ||= false
if ! @const_warning
$stderr.puts %{WARNING: Deprecated reference to top-level constant '#{const_name}' } +
%{found at: #{rakefile_location}} # '
$stderr.puts %{ Use --classic-namespace on rake command}
$stderr.puts %{ or 'require "rake/classic_namespace"' in Rakefile}
end
@const_warning = true
end Related methods
- Instance methods
- add_import
- add_loader
- collect_tasks
- const_warning
- deprecate
- display_error_message
- display_prerequisites
- display_tasks_and_comments
- dynamic_width
- dynamic_width_stty
- dynamic_width_tput
- find_rakefile_location
- handle_options
- have_rakefile
- init
- invoke_task
- load_imports
- load_rakefile
- options
- parse_task_string
- print_rakefile_directory
- rake_require
- rakefile_location
- raw_load_rakefile
- run
- standard_exception_handling
- standard_rake_options
- system_dir
- terminal_width
- top_level
- truncate
- truncate_output?
- tty_output=
- tty_output?
- unix?
- windows?
- Class methods
- new
- Private methods
-
glob -
has_chain? -
standard_system_dir