Sha256: 2227c4b4f73b818766e2eff8662efa060ebfcb3373c97df6955409e5332ac187

Contents?: true

Size: 475 Bytes

Versions: 3

Compression:

Stored size: 475 Bytes

Contents

module Checker
  module Modules
    class Pry < Base

      private
      def check_one file
        [check_for_binding_pry(file), check_for_binding_remote_pry(file)].all_true?
      end

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
checker-0.6.2 lib/checker/modules/pry.rb
checker-0.6.1 lib/checker/modules/pry.rb
checker-0.0.6 lib/checker/modules/pry.rb