Sha256: d1ba329466f2ff691843f7a7a96b73396549e7c402d299403fb05112dc647b1d
Contents?: true
Size: 647 Bytes
Versions: 2
Compression:
Stored size: 647 Bytes
Contents
class DashboardManager def start(brand_key = nil, port = 8000) 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solara-0.2.0 | solara/lib/core/dashboard/dashboard_manager.rb |
solara-0.1.0 | solara/lib/core/dashboard/dashboard_manager.rb |