summaryrefslogtreecommitdiff
path: root/lib/oxidized/cli.rb
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2014-04-15 11:13:35 +0300
committerSaku Ytti <saku@ytti.fi>2014-04-15 11:13:35 +0300
commit6aba316da6f5d3de46037ac57824cae59997f712 (patch)
tree5d7c3e82d800bfaf09f9bb92f9bdcb0b4b21995f /lib/oxidized/cli.rb
parent788890b7342639c9b5b39d664cd2a92a7abbf729 (diff)
use Asetus#create to create missing config0.0.52
Diffstat (limited to 'lib/oxidized/cli.rb')
-rw-r--r--lib/oxidized/cli.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/oxidized/cli.rb b/lib/oxidized/cli.rb
index 720f405..1e6cf05 100644
--- a/lib/oxidized/cli.rb
+++ b/lib/oxidized/cli.rb
@@ -18,11 +18,7 @@ module Oxidized
private
def initialize
- if CFGS.system.empty? and CFGS.user.empty?
- CFGS.user = CFGS.default
- CFGS.save :user
- raise NoConfig, 'edit ~/.config/oxidized/config'
- end
+ raise NoConfig, 'edit ~/.config/oxidized/config' if CFGS.create
_args, opts = parse_opts
CFG.debug = true if opts[:debug]
end