-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruby-gems.cfg
37 lines (33 loc) · 1.26 KB
/
ruby-gems.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# this file is intended for opengever development.cfg
[buildout]
parts += gems
ruby-gem-directory = ${buildout:parts-directory}/gems
sablon-executable = ${buildout:ruby-gem-directory}/bin/sablon
[gems]
recipe = collective.recipe.cmd
on_install=true
on_update=true
shell=/bin/bash
cmds=
set -euo pipefail
mkdir -p ${buildout:ruby-gem-directory}
cd ${buildout:ruby-gem-directory}
touch .matrixignore
printf "source 'https://rubygems.org'\n" > Gemfile
printf "ruby '${ruby-versions:ruby}'\n" >> Gemfile
printf "gem 'sablon', '${ruby-versions:sablon}'\n" >> Gemfile
printf "gem 'nokogiri', '${ruby-versions:nokogiri}'" >> Gemfile
printf "${ruby-versions:ruby}" > .ruby-version
bundle install --binstubs --path ${buildout:ruby-gem-directory}
uninstall_cmds=
set -euo pipefail
rm -r ${buildout:ruby-gem-directory}/bin
rm -r ${buildout:ruby-gem-directory}/ruby
rm -r ${buildout:ruby-gem-directory}/.bundle
rm ${buildout:ruby-gem-directory}/.matrixignore
rm ${buildout:ruby-gem-directory}/.ruby-version
rm ${buildout:ruby-gem-directory}/Gemfile
rm ${buildout:ruby-gem-directory}/Gemfile.lock
rmdir ${buildout:ruby-gem-directory}
[ruby-versions]
# ruby-versions are defined in our KGS starting at opengever relase 3.2