Hi,
You're welcome to checkout our modules as well
at https://github.com/unibet/. For instance
https://github.com/unibet/puppet-vagrant.
Some details about our testing mechanics:
1. rake used to manage the project. See
https://github.com/unibet/puppet-vagrant/blob/master/Rakefile
2.
I guess you're left with doing exec. Something like this should work:
exec { 'ruby193_scl_install_blah':
command = scl enable ruby193 'gem install --bindir /usr/bin --no-rdoc
--no-ri blah',
path= ['/bin','/usr/bin'],
unless = scl enable ruby193 'gem list'| grep -qs