Sha256: 04be6007df55dbdedfceedfc5c1a1eeecdaa8dac18fedfa280d7c9e9cad79471

Contents?: true

Size: 413 Bytes

Versions: 4

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

module Skippable
  def self.included(base)
    base.class_eval do
      include InstanceMethods
    end
  end

  module InstanceMethods
    def skip?
      `git config --get remote.origin.url`.split("/").last.strip.include? "neeto-auth-web"
    end

    def app_is?(git_repo)
      `git config --get remote.origin.url`.split("/").last.strip.include? "#{git_repo}"
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
neeto-compliance-1.0.58 lib/neeto_compliance/skippable.rb
neetob-0.1.2 neeto_compliance/lib/neeto_compliance/skippable.rb
neetob-0.1.1 /Users/chiragshah/Workspace/bigbinary/neeto/neetob/neeto_compliance/lib/neeto_compliance/skippable.rb
neetob-0.1.0 /Users/chiragshah/Workspace/bigbinary/neeto/neetob/neeto_compliance/lib/neeto_compliance/skippable.rb