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

Version Path
solara-0.7.4 solara/lib/core/dashboard/dashboard_manager.rb
solara-0.7.3 solara/lib/core/dashboard/dashboard_manager.rb
solara-0.7.2 solara/lib/core/dashboard/dashboard_manager.rb
solara-0.7.1 solara/lib/core/dashboard/dashboard_manager.rb
solara-0.7.0 solara/lib/core/dashboard/dashboard_manager.rb
solara-0.6.0 solara/lib/core/dashboard/dashboard_manager.rb
solara-0.5.0 solara/lib/core/dashboard/dashboard_manager.rb
solara-0.4.0 solara/lib/core/dashboard/dashboard_manager.rb
solara-0.3.0 solara/lib/core/dashboard/dashboard_manager.rb
solara-0.2.4 solara/lib/core/dashboard/dashboard_manager.rb
solara-0.2.3 solara/lib/core/dashboard/dashboard_manager.rb
solara-0.2.2 solara/lib/core/dashboard/dashboard_manager.rb
solara-0.2.1 solara/lib/core/dashboard/dashboard_manager.rb