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

Version Path
react_on_rails-4.0.0.beta.2 lib/react_on_rails/git_utils.rb
react_on_rails-4.0.0.beta.1 lib/react_on_rails/git_utils.rb
react_on_rails-3.0.6 lib/react_on_rails/git_utils.rb
react_on_rails-3.0.5 lib/react_on_rails/git_utils.rb
react_on_rails-3.0.4 lib/react_on_rails/git_utils.rb
react_on_rails-3.0.3 lib/react_on_rails/git_utils.rb
react_on_rails-3.0.2 lib/react_on_rails/git_utils.rb
react_on_rails-3.0.1 lib/react_on_rails/git_utils.rb
react_on_rails-3.0.0 lib/react_on_rails/git_utils.rb
react_on_rails-3.0.0.rc.2 lib/react_on_rails/git_utils.rb
react_on_rails-3.0.0.rc.1 lib/react_on_rails/git_utils.rb
react_on_rails-3.0.0.beta.1 lib/react_on_rails/git_utils.rb
react_on_rails-2.3.0 lib/react_on_rails/git_utils.rb
react_on_rails-2.2.0 lib/react_on_rails/git_utils.rb
react_on_rails-2.1.1 lib/react_on_rails/git_utils.rb
react_on_rails-2.1.0 lib/react_on_rails/git_utils.rb