Skip to content
Browse files

Cleaning the bundler environment thanks to @mkocher blog post

  • Loading branch information...
1 parent e321ca8 commit 771ce5525f8068d0038db5060c8d40c89cfa8a71 @drnic committed Apr 22, 2013
Showing with 12 additions and 5 deletions.
  1. +12 −5 Rakefile
View
17 Rakefile
@@ -51,10 +51,13 @@ gem "bosh_cli", "~> 1.5.0.pre"
RUBY
end
- ENV["BUNDLE_GEMFILE"] = ""
- sh "bundle install"
- sh "./update"
- sh "bundle exec bosh sync blobs"
+ Bundler.with_clean_env do
+ ENV['NOEXEC']="skip"
+
+ sh "bundle install"
+ sh "./update"
+ sh "bundle exec bosh sync blobs"
+ end
end
chdir(cf_release_dir) do
@@ -86,7 +89,11 @@ gem "bosh_cli", "~> 1.5.0.pre"
File.open("config/blobs.yml", "w") { |file| file << {}.to_yaml }
# create new final release
- sh "bundle exec bosh -n create release --final --force"
+ Bundler.with_clean_env do
+ ENV['NOEXEC']="skip"
+
+ sh "bundle exec bosh -n create release --final --force"
+ end
end

0 comments on commit 771ce55

Please sign in to comment.
Something went wrong with that request. Please try again.