lib/right_develop/utility/shell.rb in right_develop-2.0.1 vs lib/right_develop/utility/shell.rb in right_develop-2.0.2
- old
+ new
@@ -116,10 +116,10 @@
# super configure early to ensure that any custom env vars are set after
# restoring the pre-bundler env.
executioner = super(executioner, options)
# clean all bundler env vars, if requested.
- if options[:clean_bundler_env]
+ if options[:clean_bundler_env] && defined?(::Bundler)
executioner = lambda do |e|
lambda { ::Bundler.with_clean_env { e.call } }
end.call(executioner)
end
executioner