(*targets)
| 36 | end |
| 37 | |
| 38 | def source(*targets) |
| 39 | env = { |
| 40 | "SOURCE_DEFAULT" => "0", |
| 41 | "release_hash" => @current_commit, |
| 42 | } |
| 43 | targets.each do |target| |
| 44 | env["SOURCE_#{target}"] = "1" |
| 45 | end |
| 46 | sh(env, @tarball_script, @release_version, "0") |
| 47 | FileUtils.mkdir_p("artifacts") |
| 48 | sh("mv", @archive_name, "artifacts/") |
| 49 | output = sh(env, @script, @release_version, "0") |
| 50 | sh("tar", "xf", "artifacts/#{@archive_name}") |
| 51 | output |
| 52 | end |
| 53 | |
| 54 | def test_symbolic_links |
| 55 | source |
no test coverage detected