require "P4" p4 = P4.new p4.parse_forms p4.exception_level = 1 p4.connect printf("Number of files in each client:\n") printf("%-30s%s\n", "Client", "Count") p4.run_clients.each do |c| files = p4.run_files("//...@" + c["client"]) # files.each {|f| printf(" %s\n", f)} printf("%-30s%d\n", c["client"], files.length) end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 4020 | Robert Cowham | Some example Ruby scripts |