How to deploy cookbook by web API

Hi Guys,

I’m trying to embed chef to our framework, and we want to deploy our cookbook to some chef nodes by our web UI.

As i know a way to solve this problem is to execute command by our application: knife ssh ‘name:delta.chef.client0’ ‘sudo chef-client’ ,
which means the workflow is UI -> Java backend -> execute “knife ssh” command, but i don’t think it is a good way to solve my problem, so does it have any other better way to implement my requirement?

And now i’m trying to use chef push job model, i still can’t not sure if it is a sufficient way that can do the thing like what i mentioned. Could anyone give me an suggestion or answer?