File tree 3 files changed +10
-9
lines changed
3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 3
3
if [ $( command -v apt) ]; then
4
4
sudo apt install -y openssl
5
5
else
6
- sudo yum install -y openssl
7
- fi
6
+ sudo microdnf install -y openssl
7
+ fi
Original file line number Diff line number Diff line change @@ -40,17 +40,19 @@ namespace :test do
40
40
puts "Filebeat: downloading from #{ FILEBEAT_URL } to #{ download_destination } "
41
41
download ( FILEBEAT_URL , download_destination )
42
42
43
- untar_all ( download_destination , File . join ( VENDOR_PATH , "filebeat" ) ) { |e | e }
43
+ untar_all ( download_destination , VENDOR_PATH ) { |e | e }
44
44
end
45
45
end
46
46
end
47
47
end
48
48
49
- # Uncompress all the file from the archive this only work with
50
- # one level directory structure and filebeat packaging.
49
+ require 'zlib'
50
+ require 'minitar'
51
+
51
52
def untar_all ( file , destination )
52
- untar ( file ) do |entry |
53
- out = entry . full_name . split ( "/" ) . last
54
- File . join ( destination , out )
53
+ Zlib ::GzipReader . open ( file ) do |reader |
54
+ Minitar . unpack ( reader , destination )
55
55
end
56
+ filebeat_full_name = Dir . glob ( destination + "/filebeat-*" ) . first
57
+ File . rename ( filebeat_full_name , destination + "/filebeat" )
56
58
end
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ Gem::Specification.new do |s|
26
26
s . add_runtime_dependency "concurrent-ruby" , "~> 1.0"
27
27
s . add_runtime_dependency "thread_safe" , "~> 0.3.5"
28
28
s . add_runtime_dependency "logstash-codec-multiline" , ">= 2.0.5"
29
- s . add_runtime_dependency 'jar-dependencies' , '~> 0.3' , '>= 0.3.4'
30
29
s . add_runtime_dependency 'logstash-mixin-ecs_compatibility_support' , '~>1.3'
31
30
s . add_runtime_dependency 'logstash-mixin-event_support' , '~>1.0'
32
31
s . add_runtime_dependency 'logstash-mixin-plugin_factory_support' , '~>1.0'
You can’t perform that action at this time.
0 commit comments