lib/buildr/core/build.rb
# Fails if one of theses 2 conditions are not met:
#    1. the repository is clean: no content staged or unstaged
#    2. some remote repositories are defined but the current branch does not track any
Fails if one of theses 2 conditions are not met:
1. the repository is clean: no content staged or unstaged
2. some remote repositories are defined but the current branch does not track any
Fails if one of theses 2 conditions are not met : 1 . the repository is clean : no content staged or unstaged 2 . some remote repositories are defined but the current branch does not track any
def check
      uncommitted = Git.uncommitted_files
      fail "Uncommitted files violate the First Principle Of Release!\n#{uncommitted.join("\n")}" unless uncommitted.empty?
      fail "You are releasing from a local branch that does not track a remote!" unless Git.remote
    end
def check uncommitted = Git . uncommitted_files fail "Uncommitted files violate the First Principle Of Release!\n#{uncommitted.join("\n")}" unless uncommitted . empty? fail "You are releasing from a local branch that does not track a remote!" unless Git . remote end
Fails if one of theses 2 conditions are not met:
1. the repository is clean: no content staged or unstaged
2. some remote repositories are defined but the current branch does not track any
Fails if one of theses 2 conditions are not met : 1 . the repository is clean : no content staged or unstaged 2 . some remote repositories are defined but the current branch does not track any