https://github.com/rbenv/ruby-build/blob/master/bin/rbenv-install#L79
"l" | "list" )
echo "Available versions:"
definitions | indent
exit
https://github.com/rbenv/ruby-build/blob/master/bin/rbenv-install#L58
definitions() {
local query="$1"
ruby-build --definitions | $(type -p ggrep grep | head -1) -F "$query" || true
}
https://github.com/rbenv/ruby-build/blob/master/bin/ruby-build#L1125
list_definitions() {
{ for DEFINITION_DIR in "${RUBY_BUILD_DEFINITIONS[@]}"; do
[ -d "$DEFINITION_DIR" ] && ls "$DEFINITION_DIR"
done
} | sort_versions | uniq
}
https://github.com/rbenv/ruby-build/blob/master/share/ruby-build/2.4.0
install_package "openssl-1.0.2j"
install_package "ruby-2.4.0"
"l" | "list" )
echo "Available versions:"
definitions | indent
exit
https://github.com/rbenv/ruby-build/blob/master/bin/rbenv-install#L58
definitions() {
local query="$1"
ruby-build --definitions | $(type -p ggrep grep | head -1) -F "$query" || true
}
https://github.com/rbenv/ruby-build/blob/master/bin/ruby-build#L1125
list_definitions() {
{ for DEFINITION_DIR in "${RUBY_BUILD_DEFINITIONS[@]}"; do
[ -d "$DEFINITION_DIR" ] && ls "$DEFINITION_DIR"
done
} | sort_versions | uniq
}
https://github.com/rbenv/ruby-build/blob/master/share/ruby-build/2.4.0
install_package "openssl-1.0.2j"
install_package "ruby-2.4.0"