Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
executable file 28 lines (25 sloc) 859 Bytes
#!/usr/bin/env ruby
$redcar_process_start_time = Time.now
$VERBOSE = true if ARGV.find{|arg| arg == '--verbose'}
require File.expand_path(File.join(File.dirname(__FILE__), %w(.. lib redcar_quick_start)))
if ARGV.include? '--silent'
# reopen the standard pipes to nothingness if we were forked as part of jruby
STDIN.reopen Redcar.null_device
STDOUT.reopen Redcar.null_device, 'a'
STDERR.reopen STDOUT
end
if ARGV.first == "install"
require File.expand_path(File.join(File.dirname(__FILE__), %w(.. lib redcar)))
require 'redcar/installer'
installer = Redcar::Installer.new
installer.install
else
Redcar.read_stdin
exit if Redcar.try_to_load_via_drb
require File.expand_path(File.join(File.dirname(__FILE__), %w(.. lib redcar)))
Redcar.environment = :user
Redcar.spin_up
Redcar.load_threaded
Redcar.show_splash
Redcar.pump
end
Something went wrong with that request. Please try again.