Sha256: 8843edb4611e61c41d3689168993d95ebb4eb52bf0bf55c51f087dccd893b46e

Contents?: true

Size: 432 Bytes

Versions: 1

Compression:

Stored size: 432 Bytes

Contents

require "bundler/grep/version"
require 'bundler'

module Bundler
  module Grep
    class << self
      def start!(argv)
        Kernel.exec(*grep_command, argv[0], *Bundler.load.specs.map(&:full_gem_path))
      end

      private

      def grep_command
        if ENV['BUNDLER_GREP_CMD']
          ENV['BUNDLER_GREP_CMD'].split(/ /).reject {|w| w == '' }
        else
          %w(grep -R)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bundler-grep-0.1.0 lib/bundler/grep.rb