From d74a152bba73095a0c7090dc078a7023eeb9ad18 Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Wed, 16 Apr 2014 10:04:12 +0300 Subject: remove web API It is now separately in oxidized-web package --- lib/oxidized/core.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/oxidized/core.rb') diff --git a/lib/oxidized/core.rb b/lib/oxidized/core.rb index b4f5612..202cb94 100644 --- a/lib/oxidized/core.rb +++ b/lib/oxidized/core.rb @@ -5,7 +5,6 @@ module Oxidized require 'oxidized/worker' require 'oxidized/nodes' require 'oxidized/manager' - require 'oxidized/api/web' class << self def new *args Core.new args @@ -18,6 +17,11 @@ module Oxidized nodes = Nodes.new @worker = Worker.new nodes if CFG.rest + begin + require 'oxidized/web' + rescue LoadError + raise LoadError, 'oxidized-web not found: sudo gem install oxidized-web' + end @rest = API::Web.new nodes, CFG.rest @rest.run end -- cgit v1.2.1