require "P4" p4 = P4.new p4.parse_forms p4.connect clients = p4.run_clients.sort {|a,b| a["Access"].to_i <=> b["Access"].to_i} clients.each do |c| stamp = Time.at(c["Access"].to_i) # c.keys.each {|k| printf("Key: %s - %s\n", k, c[k])} printf("%-30s %s %s\n", c["client"], c["MapState"], stamp) end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 4020 | Robert Cowham | Some example Ruby scripts |