Sha256: 43a888b5b512b764fabaaafbd36bca0941fd2579c0a9d2118d4e7c9dbfee1e9d

Contents?: true

Size: 599 Bytes

Versions: 3

Compression:

Stored size: 599 Bytes

Contents

module Checker
  module Modules
    class Pry < Base

      private
      def check_one(file, opts = {})
        status = [check_for_binding_pry(file), check_for_binding_remote_pry(file)].all_true?
        Checker::Result.result(self, status ? 0 : 1)
      end

      def check_for_binding_pry(file)
        !plain_command("grep -n \"binding\\.pry\" #{file}", :bundler => false, :return_boolean => true)
      end

      def check_for_binding_remote_pry(file)
        !plain_command("grep -n \"binding\\.remote_pry\" #{file}", :bundler => false, :return_boolean => true)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
checker-0.6.5 lib/checker/modules/pry.rb
checker-0.6.5.rc2 lib/checker/modules/pry.rb
checker-0.6.5.rc1 lib/checker/modules/pry.rb