Sha256: cc1b0ed4fb5003dcc522f1702f1baa2c4864f47c366fd054dc69ada9a87a8291
Contents?: true
Size: 1.03 KB
Versions: 3
Compression:
Stored size: 1.03 KB
Contents
#!/usr/bin/env ruby __DIR__ = File.expand_path(File.dirname(__FILE__)) require File.join(__DIR__, '..', 'config') Visage::Config.use do |c| c['fallback_colors'] = YAML::load(File.read(File.join(__DIR__, 'fallback-colors.yaml'))) profile_filename = File.join(__DIR__, 'profiles.yaml') unless File.exists?(profile_filename) puts "You need to specify a list of profiles in config/profile.yaml!" puts "Check out config/profiles.yaml.sample for an example." exit 1 end YAML::load(File.read(profile_filename)).each_pair do |key, value| c[key] = value end plugin_colors_filename = File.join(__DIR__, 'plugin-colors.yaml') unless File.exists?(plugin_colors_filename) puts "It's highly recommended you specify graph line colors in config/plugin-colors.yaml!" end YAML::load(File.read(plugin_colors_filename)).each_pair do |key, value| c[key] = value end # Location of collectd's RRD - you may want to edit this! c['rrddir'] = "/var/lib/collectd/rrd" # whether to shade in graphs c['shade'] = false end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
visage-app-0.1.6 | lib/visage/config/init.rb |
visage-app-0.1.5 | lib/visage/config/init.rb |
visage-app-0.1.0 | lib/visage/config/init.rb |