Sha256: 644a1bcc06a10f61785da5177a7cc0d5ba4d77df12b03d70942203fb1d3a6895
Contents?: true
Size: 668 Bytes
Versions: 31
Compression:
Stored size: 668 Bytes
Contents
#!/usr/bin/env ruby $:.unshift(File.expand_path("../../lib", File.dirname(__FILE__))) require "tmpdir" require "bundler" require "chef/mixin/shell_out" include Chef::Mixin::ShellOut github_repo = ARGV.shift git_thing = ARGV.shift Dir.mktmpdir("chef-external-test") do |dir| git_url = "https://github.com/#{github_repo}" Dir.rmdir dir shell_out!("git clone #{git_url} #{dir}", live_stream: STDOUT) Dir.chdir(dir) do shell_out!("git checkout #{git_thing}", live_stream: STDOUT) Bundler.with_clean_env do shell_out!("bundle install", live_stream: STDOUT) shell_out!("bundle exec #{ARGV.join(" ")}", live_stream: STDOUT) end end end
Version data entries
31 entries across 31 versions & 1 rubygems