Sha256: e5de6e633cbee6983b26b5834431f8739e0a95804fe599ed10efb4c8cfddb5e0
Contents?: true
Size: 700 Bytes
Versions: 13
Compression:
Stored size: 700 Bytes
Contents
class DashboardManager def start(brand_key = nil, port = 8000) return if SolaraEnvironment.is_test Solara.logger.header("Solara Dashboard #{brand_key.nil? || brand_key.empty? ? "" : "for #{brand_key}"}") if brand_key.nil? || brand_key.empty? open("brands/brands.html?source=local", port) Solara.logger.header("Solara Dashboard") else open("brand/brand.html?brand_key=#{brand_key}&source=local", port) Solara.logger.header("Solara Dashboard for #{brand_key}") end end private def open(page, port = 8000) DashboardServer.new(page, port, FilePath.dashboard).start end end
Version data entries
13 entries across 13 versions & 1 rubygems