From 6aba316da6f5d3de46037ac57824cae59997f712 Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Tue, 15 Apr 2014 11:13:35 +0300 Subject: use Asetus#create to create missing config --- lib/oxidized/cli.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib/oxidized') 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 -- cgit v1.2.1