diff options
Diffstat (limited to 'lib/license/management/shell.rb')
| -rw-r--r-- | lib/license/management/shell.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/license/management/shell.rb b/lib/license/management/shell.rb index 6a6f0b6..c947a5c 100644 --- a/lib/license/management/shell.rb +++ b/lib/license/management/shell.rb @@ -16,6 +16,7 @@ module License keytool: '/opt/asdf/bin/asdf exec keytool', mono: '/opt/asdf/installs/mono/6.8.0.123/bin/mono', mvn: '/opt/asdf/bin/asdf exec mvn', + npm: '/opt/asdf/bin/asdf exec npm', nuget: '/opt/asdf/installs/mono/6.8.0.123/bin/nuget.exe', pip: '/opt/asdf/bin/asdf exec pip', ruby: '/opt/asdf/bin/asdf exec ruby', @@ -64,15 +65,15 @@ module License def trust!(certificate) custom_certificate_path.write(certificate) Dir.chdir custom_certificate_path.dirname do - execute([:awk, SPLIT_SCRIPT, '<', custom_certificate_path]) - execute('update-ca-certificates -v') + execute([:awk, SPLIT_SCRIPT, '<', custom_certificate_path], capture: false) + execute('update-ca-certificates -v', capture: false) Dir.glob('custom.*.crt').each do |path| - execute([:openssl, :x509, '-in', File.expand_path(path), '-text', '-noout']) + execute([:openssl, :x509, '-in', File.expand_path(path), '-text', '-noout'], capture: false) end end - execute([:cp, custom_certificate_path.to_s, "/usr/lib/ssl/certs/"]) - execute([:c_rehash, '-v']) + execute([:cp, custom_certificate_path.to_s, "/usr/lib/ssl/certs/"], capture: false) + execute([:c_rehash, '-v'], capture: false) end def present?(item) |
