Module: GrafanaSync

Defined in:
lib/grafana_sync.rb,
lib/grafana_sync/stage.rb,
lib/grafana_sync/version.rb

Defined Under Namespace

Classes: Stage

Constant Summary collapse

VERSION =
"1.1.1"

Class Method Summary collapse

Class Method Details

.configObject



10
11
12
# File 'lib/grafana_sync.rb', line 10

def config
  @config ||= {}
end

.die(msg) ⇒ Object



18
19
20
21
22
# File 'lib/grafana_sync.rb', line 18

def die(msg)
  puts("""Error: #{msg}
Use --debug option to get verbose output.""")
  exit(false)
end

.load_configObject



6
7
8
# File 'lib/grafana_sync.rb', line 6

def load_config
  @load_config ||= load('config.rb')
end

.merge_config(file_config) ⇒ Object



14
15
16
# File 'lib/grafana_sync.rb', line 14

def merge_config(file_config)
  config.merge!(file_config)
end