diff options
author | Saku Ytti <saku@ytti.fi> | 2014-04-16 10:04:12 +0300 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2014-04-16 10:04:12 +0300 |
commit | d74a152bba73095a0c7090dc078a7023eeb9ad18 (patch) | |
tree | 43f0a47fc93bcdd22f5799d41989582fc57c1cc9 /lib/oxidized/config.rb | |
parent | 2af41e1769225ac42027f2f686763389296bab79 (diff) |
remove web API
It is now separately in oxidized-web package
Diffstat (limited to 'lib/oxidized/config.rb')
-rw-r--r-- | lib/oxidized/config.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/oxidized/config.rb b/lib/oxidized/config.rb index 48a3879..cb5f81d 100644 --- a/lib/oxidized/config.rb +++ b/lib/oxidized/config.rb @@ -1,5 +1,6 @@ module Oxidized require 'asetus' + class NoConfig < OxidizedError; end class Config Root = File.join ENV['HOME'], '.config', 'oxidized' Crash = File.join Root, 'crash' @@ -41,4 +42,6 @@ module Oxidized Log.level = Logger::INFO unless CFG.debug Log.file = CFG.log if CFG.log + + raise NoConfig, 'edit ~/.config/oxidized/config' if CFGS.create end |