module Powder
Constants
- VERSION
Public Instance Methods
get_app_origin(app_link)
click to toggle source
Get the origin of the application link, whether it's a link to a rack app or proxy to a port.
# 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