summaryrefslogtreecommitdiff
path: root/lib/oxidized/core.rb
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2014-04-16 10:04:12 +0300
committerSaku Ytti <saku@ytti.fi>2014-04-16 10:04:12 +0300
commitd74a152bba73095a0c7090dc078a7023eeb9ad18 (patch)
tree43f0a47fc93bcdd22f5799d41989582fc57c1cc9 /lib/oxidized/core.rb
parent2af41e1769225ac42027f2f686763389296bab79 (diff)
remove web API
It is now separately in oxidized-web package
Diffstat (limited to 'lib/oxidized/core.rb')
-rw-r--r--lib/oxidized/core.rb6
1 files changed, 5 insertions, 1 deletions
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