diff options
Diffstat (limited to 'habitat/plan.ps1')
-rw-r--r-- | habitat/plan.ps1 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/habitat/plan.ps1 b/habitat/plan.ps1 index dfb0c9cdcc..1c27a2a86c 100644 --- a/habitat/plan.ps1 +++ b/habitat/plan.ps1 @@ -138,6 +138,19 @@ function Invoke-Verify { return 0 } +function Invoke-Clean { + Write-BuildLine "PLAN.PS1 Clean the cache" + $src = "$HAB_CACHE_SRC_PATH\$pkg_dirname" + try { + if (Test-Path "$src") { + Remove-Item "$src" -Recurse -Force + } + Write-BuildLine "Recursive Remove-Item succeeded" + } catch { + Write-BuildLine "Recursive Remove-Item failed" + } +} + function Invoke-Prepare { Write-BuildLine " ** Invoke Prepare Top" $env:GEM_HOME = "$pkg_prefix/vendor" |