Sha256: 5723028ae7ec6760f73e82b392d575bace730d99c6a684986a824f2534eb389a
Contents?: true
Size: 404 Bytes
Versions: 16
Compression:
Stored size: 404 Bytes
Contents
module ReactOnRails module GitUtils def self.uncommitted_changes?(message_handler) return false if ENV["COVERAGE"] status = `git status` return false if status.include?("nothing to commit, working directory clean") error = "You have uncommitted code. Please commit or stash your changes before continuing" message_handler.add_error(error) true end end end
Version data entries
16 entries across 16 versions & 1 rubygems