diff options
-rw-r--r-- | habitat/plan.ps1 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/habitat/plan.ps1 b/habitat/plan.ps1 index db7760d651..704b736048 100644 --- a/habitat/plan.ps1 +++ b/habitat/plan.ps1 @@ -28,6 +28,7 @@ function Invoke-Begin { function Invoke-SetupEnvironment { Push-RuntimeEnv -IsPath GEM_PATH "$pkg_prefix/vendor" + Push-RuntimeEnv -IsPath RUBY_DLL_PATH "$pkg_prefix/lib" Set-RuntimeEnv APPBUNDLER_ALLOW_RVM "true" # prevent appbundler from clearing out the carefully constructed runtime GEM_PATH Set-RuntimeEnv FORCE_FFI_YAJL "ext" # Always use the C-extensions because we use MRI on all the things and C is fast. @@ -76,6 +77,11 @@ function Invoke-Build { try { Push-Location "${HAB_CACHE_SRC_PATH}/${pkg_dirname}" + Write-BuildLine " ** Copying Chef DLLs" + New-Item -ItemType Directory -Force -Path "$pkg_prefix/lib" + Get-ChildItem ./distro/ruby_bin_folder -Filter "*.dll" | Copy-Item -Destination "$pkg_prefix/lib" + $env:_BUNDER_WINDOWS_DLLS_COPIED = "1" + Write-BuildLine " ** Using bundler to retrieve the Ruby dependencies" bundle install if (-not $?) { throw "unable to install gem dependencies" } |