Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Commit

Permalink
#166: Use rbenv::gem to install Ruby-based tools
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenrombauts committed Jan 2, 2020
1 parent 34aef8a commit 389f9ac
Showing 1 changed file with 4 additions and 28 deletions.
32 changes: 4 additions & 28 deletions puppet/environments/box/modules/profiles/manifests/box/tools.pp
Original file line number Diff line number Diff line change
@@ -1,33 +1,9 @@
class profiles::box::tools {

exec {'install-capistrano-gem':
user => vagrant,
command => '/usr/bin/gem install --user-install --no-ri --no-rdoc capistrano',
environment => ['HOME=/home/vagrant'],
unless => 'test -x /home/vagrant/.gem/ruby/2.5.0/bin/cap',
path => ['/usr/bin/', '/bin/', '/home/vagrant/.gem/ruby/2.5.0/bin/'],
timeout => 900,
tag => ['rubygem']
}

exec {'install-bundler-gem':
user => vagrant,
command => 'gem install --user-install --no-ri --no-rdoc bundler',
environment => ['HOME=/home/vagrant'],
unless => 'test -x /home/vagrant/.gem/ruby/2.5.0/bin/bundle',
path => ['/usr/bin/', '/bin/', '/home/vagrant/.gem/ruby/2.5.0/bin/'],
timeout => 900,
tag => ['rubygem']
}

exec {'install-sass-gem':
user => vagrant,
command => '/usr/bin/gem install --user-install --no-ri --no-rdoc sass compass',
environment => ['HOME=/home/vagrant'],
unless => 'test -x /home/vagrant/.gem/ruby/2.5.0/bin/sass',
path => ['/usr/bin/', '/bin/', '/home/vagrant/.gem/ruby/2.5.0/bin/'],
timeout => 900,
tag => ['rubygem']
rbenv::gem { ['capistrano', 'bundle', 'sass']:
ruby_version => $::profiles::ruby::version,
skip_docs => true,
timeout => 900
}

package { ['yarn', 'less', 'autoless', 'uglify-js']:
Expand Down

0 comments on commit 389f9ac

Please sign in to comment.