mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-12 17:27:09 +02:00
Define have_{buffer,storage,parse,format}_section? as singleton methods
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
parent
7394c9fb28
commit
f563240623
@ -38,19 +38,19 @@ class Fluentd
|
|||||||
end
|
end
|
||||||
|
|
||||||
def have_buffer_section?
|
def have_buffer_section?
|
||||||
self.class._sections.key?(:buffer)
|
self.class.have_buffer_section?
|
||||||
end
|
end
|
||||||
|
|
||||||
def have_storage_section?
|
def have_storage_section?
|
||||||
self.class._sections.key?(:storage)
|
self.class.have_storage_section?
|
||||||
end
|
end
|
||||||
|
|
||||||
def have_parse_section?
|
def have_parse_section?
|
||||||
self.class._sections.key?(:parse)
|
self.class.have_parse_section?
|
||||||
end
|
end
|
||||||
|
|
||||||
def have_format_section?
|
def have_format_section?
|
||||||
self.class._sections.key?(:format)
|
self.class.have_format_section?
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_buffer
|
def create_buffer
|
||||||
@ -99,6 +99,22 @@ class Fluentd
|
|||||||
self._list[name]
|
self._list[name]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def have_buffer_section?
|
||||||
|
self._sections.key?(:buffer)
|
||||||
|
end
|
||||||
|
|
||||||
|
def have_storage_section?
|
||||||
|
self._sections.key?(:storage)
|
||||||
|
end
|
||||||
|
|
||||||
|
def have_parse_section?
|
||||||
|
self._sections.key?(:parse)
|
||||||
|
end
|
||||||
|
|
||||||
|
def have_format_section?
|
||||||
|
self._sections.key?(:format)
|
||||||
|
end
|
||||||
|
|
||||||
def permit_params
|
def permit_params
|
||||||
self.new # init
|
self.new # init
|
||||||
keys = self._types.keys
|
keys = self._types.keys
|
||||||
|
Loading…
Reference in New Issue
Block a user