Sha256: affdb421623c7771fdd23458588a8f67a1cf22de2a9d0194c41019801b1c9e07
Contents?: true
Size: 673 Bytes
Versions: 7
Compression:
Stored size: 673 Bytes
Contents
module Riemann module Dash class App < Sinatra::Base # A little dashboard sinatra application. require 'yaml' require 'find' require 'erubis' require 'sass' def self.config Riemann::Dash::Config.instance end def config self.class.config end def self.load(filename) filename ||= 'config.rb' unless config.load_config(filename) # Configuration failed; load a default view. puts "No configuration loaded; using defaults." end config.load_controllers config.setup_views config.setup_public_dir end end end end
Version data entries
7 entries across 7 versions & 2 rubygems