module DashingContrib

Extracts overall state of dashing widgets This is useful for overall view of the monitoring system

Look at internal all available widgets and creates an overall state information

Creates a overall framework to define a reusable job.

A custom job module can extend `RunnableJob` and overrides `metrics` and `validate_state`

Constants

VERSION

Attributes

configuration[W]

Public Class Methods

configuration() click to toggle source
# File lib/dashing-contrib.rb, line 25
def self.configuration
  @configuration ||= Configuration.new
end
configure() { |configuration| ... } click to toggle source
# File lib/dashing-contrib.rb, line 29
def self.configure
  yield configuration if block_given?
  self.configure_sprockets
  Dotenv.load
end

Private Class Methods

append_sprockets_path(path) click to toggle source
# File lib/dashing-contrib.rb, line 42
def self.append_sprockets_path(path)
  puts "append to sprockets path: #{path}"
  puts Sinatra::Application.settings.sprockets

  Sinatra::Application.settings.sprockets.append_path(path)
end
configure_sprockets() click to toggle source
# File lib/dashing-contrib.rb, line 36
def self.configure_sprockets
  configuration.template_paths.each do |path|
    self.append_sprockets_path(path)
  end
end