src/ruby_supportlib/phusion_passenger/config/validate_install_command.rb
def gem_bindir
        if defined?(Gem) &&
           PhusionPassenger.originally_packaged? &&
           PhusionPassenger.build_system_dir =~ /^#{Regexp.escape Gem.dir}\// &&
           File.exist?("#{Gem.bindir}/passenger-config")
          return Gem.bindir
        else
          return nil
        end
      end
# Returns the RubyGems bin dir, if Phusion Passenger is installed through RubyGems.
Returns the RubyGems bin dir, if Phusion Passenger is installed through RubyGems.
Returns the RubyGems bin dir if Phusion Passenger is installed through RubyGems .
def gem_bindir
        if defined?(Gem) &&
           PhusionPassenger.originally_packaged? &&
           PhusionPassenger.build_system_dir =~ /^#{Regexp.escape Gem.dir}\// &&
           File.exist?("#{Gem.bindir}/passenger-config")
          return Gem.bindir
        else
          return nil
        end
      end
def gem_bindir if defined? ( Gem ) && PhusionPassenger . originally_packaged? && PhusionPassenger . build_system_dir =~ / ^ #{ Regexp . escape Gem . dir } \/ / && File . exist? ( "#{Gem.bindir}/passenger-config" ) return Gem . bindir else return nil end end
Returns the RubyGems bin dir, if Phusion Passenger is installed through RubyGems.
Returns the RubyGems bin dir if Phusion Passenger is installed through RubyGems .