Module: Powder
- Defined in:
- lib/powder.rb,
lib/powder/version.rb
Constant Summary collapse
- VERSION =
"0.3.2"
Instance Method Summary collapse
-
#get_app_origin(app_link) ⇒ Object
Get the origin of the application link, whether it’s a link to a rack app or proxy to a port.
Instance Method Details
#get_app_origin(app_link) ⇒ Object
Get the origin of the application link, whether it’s a link to a rack app or proxy to a port.
4 5 6 7 8 9 10 11 |
# File 'lib/powder.rb', line 4 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 |