Job dependency on nodes using Pushy cookbook

Hi all,

I am new to chef and trying establish job synchronization(Node Orchestration) between nodes using Pushy cookbook i found on https://github.com/mfdii/pushy

Here is the scenario:
1. Stop application on first node
2. Stop dependent application on second node
3. Stop database on third node.

To establish this dependency, what is the best way? I see the Pushy cookbook is updated long back , it is a LWRP, and now chef provides functionality of custom resources.

If i can use push job functionality , can I call my ruby code as a job?

**Thank you very much. **
Ridhul