lib/onceover/deploy.rb in onceover-3.15.2 vs lib/onceover/deploy.rb in onceover-3.16.0

- old
+ new

@@ -116,11 +116,13 @@ # R10K::Settings.global_settings.evaluate(with_overrides) # R10K::Action::Deploy::Environment prod_dir = "#{repo.tempdir}/#{repo.environmentpath}/production" Dir.chdir(prod_dir) do install_cmd = [] - install_cmd << "r10k puppetfile install --verbose --color --puppetfile #{repo.puppetfile}" + install_cmd << "r10k puppetfile install --color --puppetfile #{repo.puppetfile}" install_cmd << "--force" if force + install_cmd << "--config #{repo.r10k_config_file}" if repo.r10k_config_file + install_cmd << (logger.level > 0 ? "--verbose" : "--verbose debug") # Enable debugging if we're debugging install_cmd = install_cmd.join(' ') logger.debug "Running #{install_cmd} from #{prod_dir}" system(install_cmd) raise 'r10k could not install all required modules' unless $?.success? end