summaryrefslogtreecommitdiff
path: root/lib/oxidized/api/web.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/api/web.rb
parent2af41e1769225ac42027f2f686763389296bab79 (diff)
remove web API
It is now separately in oxidized-web package
Diffstat (limited to 'lib/oxidized/api/web.rb')
-rw-r--r--lib/oxidized/api/web.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/oxidized/api/web.rb b/lib/oxidized/api/web.rb
deleted file mode 100644
index 9a5a507..0000000
--- a/lib/oxidized/api/web.rb
+++ /dev/null
@@ -1,19 +0,0 @@
-module Oxidized
- module API
- class Web
- attr_reader :thread
- def initialize nodes, listen
- require 'oxidized/api/web/webapp'
- addr, port = listen.to_s.split ':'
- port, addr = addr, nil if not port
- WebApp.set :server, %w(puma)
- WebApp.set :bind, addr if addr
- WebApp.set :port, port
- WebApp.set :nodes, nodes
- end
- def run
- @thread = Thread.new { WebApp.run! }
- end
- end
- end
-end