mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-05-17 00:26:11 +02:00
17 lines
446 B
Ruby
17 lines
446 B
Ruby
class Fluentd
|
|
module Setting
|
|
class OutS3
|
|
include ActiveModel::Model
|
|
include Common
|
|
|
|
# TODO: needed some trick or separation for testing
|
|
# TODO: `installed_version` will connect to rubygems.org, so webock will raise exception
|
|
if installed_version("fluent-plugin-s3") >= "0.5.0"
|
|
configure_with_yaml "out_s3-0.5.x.yml"
|
|
else
|
|
configure_with_yaml "out_s3-0.4.x.yml"
|
|
end
|
|
end
|
|
end
|
|
end
|