Sha256: 7f573000686315c2709d16f33583a6524da23d546fd9680fc013cbd2696bf79d

Contents?: true

Size: 1.09 KB

Versions: 3

Compression:

Stored size: 1.09 KB

Contents

#!/usr/bin/env ruby
$KCODE='U' unless RUBY_VERSION > "1.9.0"
$redcar_process_start_time = Time.now
$VERBOSE = ARGV.include? '--verbose'

file = __FILE__
file = File.readlink(file) while File.symlink?(file)

$LOAD_PATH.unshift File.expand_path('../../lib', file)

require "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.include? "install"
  require 'redcar'
  require 'redcar/installer'
  require 'redcar/runner'
  installer = Redcar::Installer.new
  installer.install
else
  SWT_APP_NAME = "Redcar"
  Redcar.read_stdin
  exit if Redcar.try_to_load_via_drb
  require 'redcar'
  Redcar.environment = :user
  if Redcar.installed?
    Redcar.log.info("REDCAR #{Redcar::VERSION} start (start time was #{Redcar.process_start_time})")
    Redcar.spin_up
    Redcar.load_threaded
    Redcar.show_splash
    Redcar.pump
  else
    puts 'It appears you haven\'t run `redcar install` yet. Please do this in order to run Redcar.'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
redcar-dev-0.12.3dev-java bin/redcar
redcar-dev-0.12.1dev-java bin/redcar
redcar-dev-0.12.0dev-java bin/redcar