# File lib/rspec/core/runner.rb, line 7 def self.autorun return if autorun_disabled? || installed_at_exit? || running_in_drb? @installed_at_exit = true at_exit { run(ARGV, $stderr, $stdout) ? exit(0) : exit(1) } end
# File lib/rspec/core/runner.rb, line 13 def self.autorun_disabled? @autorun_disabled ||= false end
# File lib/rspec/core/runner.rb, line 17 def self.disable_autorun! @autorun_disabled = true end
# File lib/rspec/core/runner.rb, line 21 def self.installed_at_exit? @installed_at_exit ||= false end
# File lib/rspec/core/runner.rb, line 38 def self.run(args, err, out) trap_interrupt options = ConfigurationOptions.new(args) options.parse_options if options.options[:drb] run_over_drb(options, err, out) || run_in_process(options, err, out) else run_in_process(options, err, out) end end
# File lib/rspec/core/runner.rb, line 54 def self.run_in_process(options, err, out) CommandLine.new(options, RSpec::configuration, RSpec::world).run(err, out) end
# File lib/rspec/core/runner.rb, line 50 def self.run_over_drb(options, err, out) DRbCommandLine.new(options).run(err, out) end
Generated with the Darkfish Rdoc Generator 2.