p4_util.rb #3

  • //
  • guest/
  • perforce_software/
  • helix-web-services/
  • main/
  • p4_web_api/
  • p4_web_api/
  • lib/
  • p4_web_api/
  • p4_util.rb
  • Commits
# Change User Description Committed
#3 13972 tjuricek Removing old microservice implementations.

The system is now mostly a monolith. Eventually there will be a websocket service.
#2 13416 tjuricek Set up the p4_web_api related projects to be loaded by the parent Gemfile to make it a little easier to launch a test p4d with different seed data.

Also fixed a couple of minor issues related to the client api.

You'll notice that the 'rake api_reset api_init' task sets up a p4d for the p4_web_api tests, where the 'rake proj_reset proj_init' tasks set up p4d for project services testing.

An example p4_web_api.ru that can be used for launching just the p4_web_api:

require 'p4_web_api'

# Do *not* let your development environment variables pollute how the p4 web api runs!
ENV.keys.select { |k| k =~ /^P4/ }.each { |k| ENV.delete(k) }

api = P4WebAPI::App.new
puts 'changing paths'
api.settings.token_path = '/Users/tjuricek/dev/p4ws/work/tokens'
api.settings.workspace_folder = '/Users/tjuricek/dev/p4ws/work/workspaces'
api.settings.p4 = {'port' => 'localhost:1666', 'charset' => 'auto'}

run api
#1 13412 tjuricek Initial version of the web-services mainline.

This is a collection of several projects, that will likely often get released together, though many of them may not always be relevant.

See the README for more information.