Skip to content

Commit

Permalink
Store Phusion Passenger Lite resource directory locations in constants.
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarWidget committed Jun 2, 2010
1 parent 0061e57 commit 99eb8bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/phusion_passenger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ def self.natively_packaged?
"/usr/local/share/phusion-passenger/plugins",
"~/#{LOCAL_DIR}/plugins"]

# Directory under $HOME for storing Phusion Passenger Lite resource files.
LOCAL_LITE_RESOURCE_DIR = File.join(LOCAL_DIR, "lite")

# System-wide directory for storing Phusion Passenger Lite resource files.
GLOBAL_LITE_RESOURCE_DIR = "/var/lib/passenger-lite"

if !natively_packaged?
# Top directory of the Phusion Passenger source code.
SOURCE_ROOT = File.expand_path(File.join(LIBDIR, ".."))
Expand Down

0 comments on commit 99eb8bf

Please sign in to comment.