Sha256: b04536632e3e7767d4a211f966ca59497586254742a297fe2ad3844fe0bd55a5

Contents?: true

Size: 542 Bytes

Versions: 3

Compression:

Stored size: 542 Bytes

Contents

include IosToolchain::Helpers

namespace :git do
  desc "Checks for uncommitted changes and aborts if any are found"
  task :check_for_uncommitted_changes do
    puts "Checking for uncommitted changes..."
    if `git status -s`.chomp.length > 0
      system("git status")
      bail("Uncommitted changes detected (maybe something got auto-corrected?). Please commit these and try again.")
    end
    puts "Done!"
  end

  desc "Pushes the current branch to origin"
  task :push_origin do
    system("git push origin head") || bail
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ios_toolchain-0.2.2 lib/ios_toolchain/tasks/git.rake
ios_toolchain-0.2.1 lib/ios_toolchain/tasks/git.rake
ios_toolchain-0.2.0 lib/ios_toolchain/tasks/git.rake