Sha256: 690b6b66bd1a274e5232ac66b287b3bbe741c4a803e024d6a31cf277692ba722

Contents?: true

Size: 316 Bytes

Versions: 4

Compression:

Stored size: 316 Bytes

Contents

# This module can be transparently run even if Bundler is not installed
module Benchmark::Driver::Bundler
  def self.with_clean_env(&block)
    begin
      require 'bundler'
    rescue LoadError
      block.call # probably bundler is not used
    else
      ::Bundler.with_clean_env { block.call }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
benchmark_driver-0.8.6 lib/benchmark/driver/bundler.rb
benchmark_driver-0.8.5 lib/benchmark/driver/bundler.rb
benchmark_driver-0.8.4 lib/benchmark/driver/bundler.rb
benchmark_driver-0.8.3 lib/benchmark/driver/bundler.rb