File tree 1 file changed +23
-0
lines changed
1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,23 @@ def macos?
83
83
/darwin/ =~ RUBY_PLATFORM
84
84
end
85
85
86
+ def rhel?
87
+ retval = false
88
+ File . open ( "/etc/os-release" ) do |f |
89
+ f . readlines . each do |line |
90
+ case line
91
+ when /ID="amzn"/
92
+ retval = true
93
+ when /ID="almalinux"/
94
+ retval = true
95
+ when /ID="rocky"/
96
+ retval = true
97
+ end
98
+ end
99
+ end
100
+ retval
101
+ end
102
+
86
103
def ensure_directory ( dirname )
87
104
mkdir_p ( dirname ) unless File . exist? ( dirname )
88
105
if block_given?
@@ -433,6 +450,12 @@ class BuildTask
433
450
puts "::group::Install ruby gems" if ENV [ "CI" ]
434
451
gem_install ( "bundler" , BUNDLER_VERSION )
435
452
453
+ if not windows? and not macos? and rhel?
454
+ IO . popen ( "rpm -qa | grep ssl" ) do |rpm_io |
455
+ puts rpm_io . read
456
+ end
457
+ end
458
+
436
459
gem_home = ENV [ "GEM_HOME" ]
437
460
ENV [ "GEM_HOME" ] = gem_staging_dir
438
461
ENV [ "INSTALL_GEM_FROM_LOCAL_REPO" ] = "yes"
You can’t perform that action at this time.
0 commit comments