require 'P4' class QAPlayProjects def initialize end def projects(user, authtoken) begin p4 = P4.new p4.port = 'qaplay:1999' p4.user = user p4.password = authtoken p4.connect # puts p4.inspect # puts p4.run_info # puts p4.run_user('-o') projects = [] # now get all of the streams under //allan p4.run_streams('//allan/*').each { |streamDesc| projects << { 'id' => "#{streamDesc['Name']}", 'name' => "#{streamDesc['Name']}", 'url' => "http://localhost:3000/projects/#{streamDesc['Name']}/", 'server' => p4.port, 'P4CHARSET' => ENV['P4CHARSET'] || 'none', 'stream' => "#{streamDesc['Stream']}", } } return projects rescue P4Exception => e puts e.message raise e end end end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 17271 | tjuricek | Remove deprecated Ruby implementation. | ||
//guest/perforce_software/helix-web-services/main/source/helix_web_services/mock_raymond/lib/qaplay_projects.rb | |||||
#1 | 16072 | tjuricek |
Helix Cloud integration for Helix Sync services. This includes a "mock_raymond" rails application for keeping tabs on basic integration with Helix Cloud. We do not test against a live server. See integration history for more details. |
||
//guest/doug_scheirer/helix-web-services/main/source/helix_web_services/mock_raymond/lib/qaplay_projects.rb | |||||
#2 | 16024 | Doug Scheirer | Some cloud spec forking, got the mock_raymond to spin up in cloud testing, split normal vs cloud spec output | ||
#1 | 15853 | Doug Scheirer | mock_raymond missing files |