class Git::Base

Public Instance Methods

clean?() click to toggle source
# File lib/qcloudhive/git_helper.rb, line 38
def clean?()
  begin
  if status.changed.count > 0
    L.info("****************************")
    L.info("changed #{status.changed}")
    return false
  end
  if status.untracked.count >0
    L.info("****************************")
    L.info("untracked #{status.untracked}")
    return false
  end

  if status.deleted.count > 0
    L.info("****************************")
    L.info("deleted #{status.deleted}")
    return false
  end

  if status.added.count > 0
    L.info("****************************")
    L.info("added #{status.added}")
    return false
  end
  rescue => err
    puts "读取Git数据失败#{err}"
    return false
  end
return true
end