Module: Overwatch

Defined in:
lib/overwatch/collection/application.rb,
lib/overwatch/collection.rb,
lib/overwatch/collection/version.rb,
lib/overwatch/collection/attributes.rb,
lib/overwatch/collection/models/resource.rb,
lib/overwatch/collection/models/snapshot.rb,
lib/overwatch/collection/routes/resource.rb,
lib/overwatch/collection/routes/snapshot.rb

Overview

require ‘sinatra/reloader’ if development?

Defined Under Namespace

Modules: Collection Classes: AttributeError, Resource, Snapshot

Class Method Summary collapse

Class Method Details

.configObject



23
24
25
26
# File 'lib/overwatch/collection.rb', line 23

def config
  @config ||= {}
  @config.merge!(YAML.load_file(config_path))
end

.config_pathObject



19
20
21
# File 'lib/overwatch/collection.rb', line 19

def config_path
  @config_path ||= File.expand_path(File.dirname(__FILE__)) + "/../../config/overwatch.yml"
end

.config_path=(path) ⇒ Object



15
16
17
# File 'lib/overwatch/collection.rb', line 15

def config_path=(path)
  @config_path = path
end