mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 22:44:20 +02:00
12 lines
368 B
JavaScript
12 lines
368 B
JavaScript
const path = require('path')
|
|
const exec = require('@actions/exec')
|
|
|
|
export async function rubygemsUpdate(rubygemsVersionInput, rubyPrefix) {
|
|
const gem = path.join(rubyPrefix, 'bin', 'gem')
|
|
const rubygemsVersion = (rubygemsVersionInput === 'latest') ? [] : [rubygemsVersionInput]
|
|
|
|
await exec.exec(gem, ['update', '--system', ...rubygemsVersion])
|
|
|
|
return true
|
|
}
|