diff --git a/spec/support/outputs/bundle_install.txt b/spec/support/outputs/bundle_install.txt index 8d17fe06..951bf643 100644 --- a/spec/support/outputs/bundle_install.txt +++ b/spec/support/outputs/bundle_install.txt @@ -1,2 +1,5 @@ echo "-----> Installing gem dependencies using Bundler" -bundle install --without development test --path "vendor/bundle" --deployment \ No newline at end of file +bundle config set --local without 'development test' +bundle config set --local path 'vendor/bundle' +bundle config set --local deployment 'true' +bundle install \ No newline at end of file diff --git a/tasks/mina/bundler.rb b/tasks/mina/bundler.rb index 8b062e8f..bae258a5 100644 --- a/tasks/mina/bundler.rb +++ b/tasks/mina/bundler.rb @@ -12,7 +12,10 @@ desc 'Install gem dependencies using Bundler.' task :install do comment %(Installing gem dependencies using Bundler) - command %(#{fetch(:bundle_bin)} install #{fetch(:bundle_options)}) + command %(#{fetch(:bundle_bin)} config set --local without '#{fetch(:bundle_withouts)}') + command %(#{fetch(:bundle_bin)} config set --local path '#{fetch(:bundle_path)}') + command %(#{fetch(:bundle_bin)} config set --local deployment 'true') + command %(#{fetch(:bundle_bin)} install) end desc 'Cleans up unused gems in your bundler directory'