Sha256: fb1d093b98fc7936e523f1647e9301fd58b8959c72003f58bec48046c63a7059

Contents?: true

Size: 623 Bytes

Versions: 60

Compression:

Stored size: 623 Bytes

Contents

#!/usr/bin/env ruby
#
# Usage: ./dev/runner <CODE>
#
# Evaluates Ruby code in an environment that has the Phusion Passenger
# libraries loaded.

require File.expand_path(File.dirname(__FILE__) + "/../src/ruby_supportlib/phusion_passenger")
PhusionPassenger.locate_directories

while true
  if ARGV[0] =~ /^-r(.*)/
    if $1.empty?
      lib = ARGV[1]
      ARGV.shift
      ARGV.shift
    else
      lib = $1
      ARGV.shift
    end
    begin
      PhusionPassenger.require_passenger_lib(lib)
    rescue LoadError
      require(lib)
    end
  else
    break
  end
end

module PhusionPassenger
  p eval(ARGV.join(" "))
end

Version data entries

60 entries across 60 versions & 2 rubygems

Version Path
passenger-5.1.6 dev/runner
passenger-5.1.5 dev/runner
passenger-5.1.4 dev/runner
passenger-5.1.3 dev/runner
passenger-5.1.2 dev/runner
passenger-5.1.1 dev/runner
passenger-5.1.0 dev/runner
passenger-5.0.30 dev/runner
passenger-5.0.29 dev/runner
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/passenger-5.0.28/dev/runner
passenger-5.0.28 dev/runner
passenger-5.0.27 dev/runner
passenger-5.0.26 dev/runner
passenger-5.0.25 dev/runner
passenger-5.0.24 dev/runner
passenger-5.0.23 dev/runner
passenger-5.0.22 dev/runner
passenger-5.0.21 dev/runner
passenger-5.0.20 dev/runner
passenger-5.0.19 dev/runner