Skip to content

Commit

Permalink
Refs #12715 - decoupled logs API from core
Browse files Browse the repository at this point in the history
  • Loading branch information
lzap committed Jan 27, 2016
1 parent 91d4aa6 commit 98b4df5
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 51 deletions.
5 changes: 5 additions & 0 deletions config/settings.d/logs.yml.example
@@ -0,0 +1,5 @@
---
# Can be true, false, or http/https to enable just one of the protocols
:enabled: false

# Log buffer configuration is in core file (settings.yml)
2 changes: 2 additions & 0 deletions lib/proxy/log_buffer/buffer.rb
Expand Up @@ -30,6 +30,8 @@ def to_h
end

class Buffer
attr_reader :size, :size_tail

def self.instance
@@buffer ||= Buffer.new
end
Expand Down
3 changes: 2 additions & 1 deletion lib/smart_proxy_main.rb
Expand Up @@ -68,7 +68,8 @@ module Proxy
require 'puppetca/puppetca'
require 'puppet_proxy/puppet'
require 'bmc/bmc'
require "realm/realm"
require 'realm/realm'
require 'logs/logs'

def self.version
{:version => VERSION}
Expand Down
5 changes: 0 additions & 5 deletions modules/root/http_config.ru
@@ -1,10 +1,5 @@
require 'root/root_api'
require 'root/logs_api'

map "/" do
run Proxy::RootApi
end

map "/logs" do
run Proxy::LogsApi
end
20 changes: 0 additions & 20 deletions modules/root/logs_api.rb

This file was deleted.

25 changes: 0 additions & 25 deletions test/root/logs_api_test.rb

This file was deleted.

0 comments on commit 98b4df5

Please sign in to comment.