-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed 'powder list' to display proxy ports.
- Loading branch information
1 parent
a239515
commit 804b78b
Showing
2 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,12 @@ | ||
module Powder | ||
# Get the origin of the application link, whether it's a link to a | ||
# rack app or proxy to a port. | ||
def get_app_origin(app_link) | ||
if File.symlink? app_link | ||
File.readlink(app_link) | ||
else | ||
port = File.readlines(app_link)[0] | ||
"proxy port: #{port}" | ||
end | ||
end | ||
end |