lib/poise_boiler/helpers/rake/check.rb
# Check a project for changes.
#
# @param path [String] Path to the project's git repository.
# @return [void]
Check a project for changes.
Check a project for changes .
def check_project(path, header: nil, summary: false)
          git = Git.open(path)
          return unless git.branches['master']
          return unless git.remote('origin').url
          changed = check_changed_files(git)
          commits = check_commits(git)
          shell.say(header, :blue) unless !header || (changed.empty? && commits.empty?)
          display_changed_files(changed, summary: summary) unless changed.empty?
          display_commits(commits, summary: summary) unless commits.empty?
        end
def check_project ( path , header : nil , summary : false ) git = Git . open ( path ) return unless git . branches [ 'master' ] return unless git . remote ( 'origin' ) . url changed = check_changed_files ( git ) commits = check_commits ( git ) shell . say ( header , :blue ) unless ! header || ( changed . empty? && commits . empty? ) display_changed_files ( changed , summary : summary ) unless changed . empty? display_commits ( commits , summary : summary ) unless commits . empty? end
Check a project for changes.
Check a project for changes .
# Some checks for repos that aren't full projects.
None
void
path
Path to the project's git repository.
Path to the project ' s git repository .
header
<not_specific>
summary
<not_specific>