Sha256: c53dcd4f74a82635644bf6984e869f013166c66de6b3dee10aceb9494c7e833d

Contents?: true

Size: 303 Bytes

Versions: 12

Compression:

Stored size: 303 Bytes

Contents

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
powder-0.4.0 lib/powder.rb
powder-0.3.3 lib/powder.rb
powder-0.3.2 lib/powder.rb
powder-0.3.1 lib/powder.rb
powder-0.3.0 lib/powder.rb
powder-0.3.0.pre4 lib/powder.rb
powder-0.3.0.pre3 lib/powder.rb
powder-0.3.0.pre2 lib/powder.rb
powder-0.3.0.pre lib/powder.rb
powder-0.2.2 lib/powder.rb
powder-0.2.1 lib/powder.rb
powder-0.2.0 lib/powder.rb