<%=
require 'yaml'

bpm = {
  "processes" => [
    "name" => "tcp_router",
    "executable" => "/var/vcap/jobs/tcp_router/bin/tcp_router_ctl",
    "env" => {},
    "hooks" => {
      "pre_start" => "/var/vcap/jobs/tcp_router/bin/bpm-pre-start"
    },
    "additional_volumes" => [
      { "path" =>  "/var/vcap/data/tcp_router/config",
      "writable" => true,
      },
      { "path" =>  "/var/vcap/data/tcp_router/tmp",
      "writable" => true,
      },
    ],
    "capabilities" => [
      "NET_BIND_SERVICE",
      "SYS_RESOURCE"
    ],
  ]
}

YAML.dump(bpm)
%>
