Previously we were using `puppet_module_install()`. Which was ported from
Beaker-RSpec. Unfortunately for our heros that method has been refactored
since this was ran last. The method `puppet_module_install()` in Beaker
installs from the public forge, while the previous behavior, installing via
scp from the current directory, has moved to the method `copy_module_to`.
This updates the helper for the beaker tests to use the updated method.
hosts.each do |host|
proj_root = File.expand_path(File.join(File.dirname(__FILE__),'..','..'))
- # This require beaker 1.12.2 I believe
- puppet_module_install(:source => proj_root, :module_name => 'vcsrepo')
+ # This require beaker 1.15
+ copy_module_to(host, :source => proj_root, :module_name => 'vcsrepo')
case fact_on(host, 'osfamily')
when 'RedHat'