Methods
Constants
RUBY | = | File.join(*RbConfig::CONFIG.values_at("bindir", "ruby_install_name")) + RbConfig::CONFIG["EXEEXT"] |
SCRIPT_RAILS | = | File.join('script', 'rails') |
Class Public methods
# File railties/lib/rails/script_rails_loader.rb, line 8 8: def self.exec_script_rails! 9: cwd = Dir.pwd 10: return unless in_rails_application? || in_rails_application_subdirectory? 11: exec RUBY, SCRIPT_RAILS, *ARGV if in_rails_application? 12: Dir.chdir("..") do 13: # Recurse in a chdir block: if the search fails we want to be sure 14: # the application is generated in the original working directory. 15: exec_script_rails! unless cwd == Dir.pwd 16: end 17: rescue SystemCallError 18: # could not chdir, no problem just return 19: end