Module: SagaForge::Dashboard
- Defined in:
- lib/saga_forge/dashboard.rb,
lib/saga_forge/dashboard/engine.rb,
lib/saga_forge/dashboard/version.rb,
lib/saga_forge/dashboard/configuration.rb,
app/queries/saga_forge/dashboard/sagas_query.rb,
app/queries/saga_forge/dashboard/stats_query.rb,
app/presenters/saga_forge/dashboard/saga_graph.rb,
app/jobs/saga_forge/dashboard/bulk_recovery_job.rb,
app/queries/saga_forge/dashboard/overview_query.rb,
app/helpers/saga_forge/dashboard/dashboard_helper.rb,
app/controllers/saga_forge/dashboard/base_controller.rb,
app/controllers/saga_forge/dashboard/sagas_controller.rb,
app/presenters/saga_forge/dashboard/context_presenter.rb,
app/controllers/saga_forge/dashboard/assets_controller.rb,
app/presenters/saga_forge/dashboard/timeline_presenter.rb,
app/controllers/saga_forge/dashboard/actions_controller.rb,
app/controllers/saga_forge/dashboard/stalled_controller.rb,
app/controllers/saga_forge/dashboard/overview_controller.rb,
app/controllers/saga_forge/dashboard/suspended_controller.rb,
app/controllers/saga_forge/dashboard/definitions_controller.rb
Defined Under Namespace
Modules: DashboardHelper
Classes: ActionsController, AssetsController, AuthenticationNotConfigured, BaseController, BulkRecoveryJob, Configuration, ContextPresenter, DefinitionsController, Engine, OverviewController, OverviewQuery, SagaGraph, SagasController, SagasQuery, StalledController, StatsQuery, SuspendedController, TimelinePresenter
Constant Summary
collapse
- ASSET_ROOT =
"app/assets/saga_forge/dashboard"
- VERSION =
"0.1.0"
Class Method Summary
collapse
Class Method Details
.asset_digest(file) ⇒ Object
Short content digest of a shipped asset, to cache-bust the served CSS/JS
despite the immutable cache header. Memoized once per boot.
19
20
21
22
23
24
25
26
27
28
29
30
|
# File 'lib/saga_forge/dashboard.rb', line 19
def asset_digest(file)
@asset_digests ||= {}
@asset_digests[file] ||= begin
require "digest"
Digest::SHA256.file(Engine.root.join(ASSET_ROOT, file)).hexdigest[0, 12]
rescue Errno::ENOENT
VERSION
rescue => e
Rails.logger.warn { "[saga_forge-dashboard] asset_digest(#{file}) failed: #{e.class}: #{e.message}" } if defined?(Rails) && Rails.logger
VERSION
end
end
|
.config ⇒ Object
11
|
# File 'lib/saga_forge/dashboard.rb', line 11
def config = (@config ||= Configuration.new)
|
13
|
# File 'lib/saga_forge/dashboard.rb', line 13
def configure = yield(config)
|
.reset_configuration! ⇒ Object
15
|
# File 'lib/saga_forge/dashboard.rb', line 15
def reset_configuration! = @config = Configuration.new
|