diff --git a/share/ruby-build/2.6.6 b/share/ruby-build/2.6.6 new file mode 100644 index 0000000..fa75222 --- /dev/null +++ b/share/ruby-build/2.6.6 @@ -0,0 +1,14 @@ +# Detect distribution and version. +if [ -f /etc/os-release ]; then + . /etc/os-release + OS_DISTRO=$ID + OS_VERSION=$VERSION_ID +else + echo "Cannot determine distribution." + exit 1 +fi + +# Detect architecture +ARCH=$(uname -m) + +install_package "https://ruby.elastic-infra.com/${OS_DISTRO}/${OS_VERSION}/$ARCH/ruby-2.6.6.tar.gz" copy diff --git a/share/ruby-build/2.7.4 b/share/ruby-build/2.7.4 new file mode 100644 index 0000000..25b5473 --- /dev/null +++ b/share/ruby-build/2.7.4 @@ -0,0 +1,14 @@ +# Detect distribution and version. +if [ -f /etc/os-release ]; then + . /etc/os-release + OS_DISTRO=$ID + OS_VERSION=$VERSION_ID +else + echo "Cannot determine distribution." + exit 1 +fi + +# Detect architecture +ARCH=$(uname -m) + +install_package "https://ruby.elastic-infra.com/${OS_DISTRO}/${OS_VERSION}/$ARCH/ruby-2.7.4.tar.gz" copy diff --git a/share/ruby-build/3.0.3 b/share/ruby-build/3.0.3 new file mode 100644 index 0000000..64a8b97 --- /dev/null +++ b/share/ruby-build/3.0.3 @@ -0,0 +1,14 @@ +# Detect distribution and version. +if [ -f /etc/os-release ]; then + . /etc/os-release + OS_DISTRO=$ID + OS_VERSION=$VERSION_ID +else + echo "Cannot determine distribution." + exit 1 +fi + +# Detect architecture +ARCH=$(uname -m) + +install_package "https://ruby.elastic-infra.com/${OS_DISTRO}/${OS_VERSION}/$ARCH/ruby-3.0.3.tar.gz" copy diff --git a/share/ruby-build/3.2.0 b/share/ruby-build/3.2.0 deleted file mode 100644 index 605b5e2..0000000 --- a/share/ruby-build/3.2.0 +++ /dev/null @@ -1,13 +0,0 @@ -# Detect architecture and install appropriate binary -case "$(uname -m)" in - x86_64) - install_package "ruby-3.2.0" "https://ei-shiroma-test-ruby.s3.ap-northeast-1.amazonaws.com/v3.2.0/ruby-3.2.0-linux-x86_64.tar.gz" copy - ;; - aarch64) - install_package "ruby-3.2.0" "https://ei-shiroma-test-ruby.s3.ap-northeast-1.amazonaws.com/v3.2.0/ruby-3.2.0-linux-aarch64.tar.gz" copy - ;; - *) - echo "Unsupported architecture: $(uname -m)" >&2 - exit 1 - ;; -esac diff --git a/share/ruby-build/3.2.1 b/share/ruby-build/3.2.1 new file mode 100644 index 0000000..08cbc25 --- /dev/null +++ b/share/ruby-build/3.2.1 @@ -0,0 +1,14 @@ +# Detect distribution and version. +if [ -f /etc/os-release ]; then + . /etc/os-release + OS_DISTRO=$ID + OS_VERSION=$VERSION_ID +else + echo "Cannot determine distribution." + exit 1 +fi + +# Detect architecture +ARCH=$(uname -m) + +install_package "https://ruby.elastic-infra.com/${OS_DISTRO}/${OS_VERSION}/$ARCH/ruby-3.2.1.tar.gz" copy diff --git a/share/ruby-build/3.2.2 b/share/ruby-build/3.2.2 new file mode 100644 index 0000000..41026c7 --- /dev/null +++ b/share/ruby-build/3.2.2 @@ -0,0 +1,14 @@ +# Detect distribution and version. +if [ -f /etc/os-release ]; then + . /etc/os-release + OS_DISTRO=$ID + OS_VERSION=$VERSION_ID +else + echo "Cannot determine distribution." + exit 1 +fi + +# Detect architecture +ARCH=$(uname -m) + +install_package "https://ruby.elastic-infra.com/${OS_DISTRO}/${OS_VERSION}/$ARCH/ruby-3.2.2.tar.gz" copy diff --git a/share/ruby-build/3.2.3 b/share/ruby-build/3.2.3 new file mode 100644 index 0000000..95b1c3c --- /dev/null +++ b/share/ruby-build/3.2.3 @@ -0,0 +1,14 @@ +# Detect distribution and version. +if [ -f /etc/os-release ]; then + . /etc/os-release + OS_DISTRO=$ID + OS_VERSION=$VERSION_ID +else + echo "Cannot determine distribution." + exit 1 +fi + +# Detect architecture +ARCH=$(uname -m) + +install_package "https://ruby.elastic-infra.com/${OS_DISTRO}/${OS_VERSION}/$ARCH/ruby-3.2.3.tar.gz" copy diff --git a/share/ruby-build/3.2.5 b/share/ruby-build/3.2.5 new file mode 100644 index 0000000..d7a35b1 --- /dev/null +++ b/share/ruby-build/3.2.5 @@ -0,0 +1,14 @@ +# Detect distribution and version. +if [ -f /etc/os-release ]; then + . /etc/os-release + OS_DISTRO=$ID + OS_VERSION=$VERSION_ID +else + echo "Cannot determine distribution." + exit 1 +fi + +# Detect architecture +ARCH=$(uname -m) + +install_package "https://ruby.elastic-infra.com/${OS_DISTRO}/${OS_VERSION}/$ARCH/ruby-3.2.5.tar.gz" copy diff --git a/share/ruby-build/3.3.5 b/share/ruby-build/3.3.5 new file mode 100644 index 0000000..779ba51 --- /dev/null +++ b/share/ruby-build/3.3.5 @@ -0,0 +1,14 @@ +# Detect distribution and version. +if [ -f /etc/os-release ]; then + . /etc/os-release + OS_DISTRO=$ID + OS_VERSION=$VERSION_ID +else + echo "Cannot determine distribution." + exit 1 +fi + +# Detect architecture +ARCH=$(uname -m) + +install_package "https://ruby.elastic-infra.com/${OS_DISTRO}/${OS_VERSION}/$ARCH/ruby-3.3.5.tar.gz" copy diff --git a/share/ruby-build/3.4.1 b/share/ruby-build/3.4.1 new file mode 100644 index 0000000..44e8cc7 --- /dev/null +++ b/share/ruby-build/3.4.1 @@ -0,0 +1,14 @@ +# Detect distribution and version. +if [ -f /etc/os-release ]; then + . /etc/os-release + OS_DISTRO=$ID + OS_VERSION=$VERSION_ID +else + echo "Cannot determine distribution." + exit 1 +fi + +# Detect architecture +ARCH=$(uname -m) + +install_package "https://ruby.elastic-infra.com/${OS_DISTRO}/${OS_VERSION}/$ARCH/ruby-3.4.1.tar.gz" copy