# File lib/rubygems-bundler/noexec.rb, line 108
  def check
    if %w(bundle rubygems-bundler-uninstaller).include?(bin)
      log "Noexec - skipped binary: #{bin}"

    elsif ENV['NOEXEC_EXCLUDE'] && ENV['NOEXEC_EXCLUDE'].split(/ /).include?(bin)
      log "Noexec - ENV skipped binary: #{bin}"

    elsif ENV['BUNDLE_GEMFILE'] && ENV['BUNDLE_BIN_PATH'] && ENV['RUBYOPT']
      log "Noexec - already in 'bundle exec'"

    elsif %w(0 skip).include?( ENV['NOEXEC'] ) || ENV.key?('NOEXEC_DISABLE')
      #TODO: deprecated in 1.1.0, to be removed later -- 2012.09.05
      $stderr.puts "Warning, 'NOEXEC' environment variable is deprecated, switch to 'NOEXEC_DISABLE=1'." if ENV.key?('NOEXEC')
      log "Noexec - disabled with environment variable"

    else
      setup

    end
  end