summaryrefslogtreecommitdiff
path: root/lib/oxidized/config.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/config.rb')
-rw-r--r--lib/oxidized/config.rb3
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