bin/_rsense.rb in rsense-server-0.5.14 vs bin/_rsense.rb in rsense-server-0.5.15

- old
+ new

@@ -25,17 +25,18 @@ end end.parse! def config(options) if options[:path] - path = Pathname.new(options[:path]).expand_path + options[:path] = path = Pathname.new(options[:path]).expand_path end conf = Rsense::Server::Config.new if path && path.exist? conf.set_up(path) else - conf.set_up(Pathname.new("~").expand_path) + options[:path] = Pathname.new(Dir.pwd).expand_path + conf.set_up(options[:path]) end conf end def port(options)