summaryrefslogtreecommitdiff
path: root/config/projects/ruby.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/projects/ruby.rb')
-rw-r--r--config/projects/ruby.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/config/projects/ruby.rb b/config/projects/ruby.rb
new file mode 100644
index 0000000..6202715
--- /dev/null
+++ b/config/projects/ruby.rb
@@ -0,0 +1,21 @@
+# frozen_string_literal: true
+
+ruby_version = ENV.fetch('RUBY_VERSION', '2.7.1')
+
+name "ruby-#{ruby_version}"
+maintainer "GitLab B.V."
+homepage "https://www.ruby-lang.org/"
+
+install_dir "/opt/asdf/installs/ruby/#{ruby_version}"
+package_scripts_path Pathname.pwd.join("config/scripts/ruby")
+
+build_version ruby_version
+build_iteration 1
+
+override 'asdf_ruby', version: ruby_version
+dependency "asdf_ruby"
+
+package :deb do
+ compression_level 9
+ compression_type :xz
+end