Skip to content

Loop

Original ही source of truth रहता है। Migration हर हिस्से के लिए एक जैसे steps से गुज़रता है, और ruby-anything go आपको (या आपके agent को) बताता है कि अगला कौन-सा है।

  1. Plan: analyze waves और फ़ैसलों के साथ rails/port/PLAN.md लिखता है। आप फ़ैसले तय करते हैं; वे ADRs के रूप में rails/port/DECISIONS.md में लिखे जाते हैं।
  2. Record: app record capture करता है कि पूरा app क्या जवाब देता है; record capture करता है कि अकेले functions क्या return, raise और print करते हैं।
  3. Front door: app front-door Rails को original के आगे रखता है। जो route अभी Rails के पास नहीं है, वह original पर proxy होता है, ताकि app चलता रहे।
  4. Port: आपका agent एक बार में एक route या unit port करता है: bridge Ruby skeleton बनाता है, agent Ruby लिखता है।
  5. Verify: diff (units) और app replay (routes) port की तुलना recording से करते हैं।
  6. Gate: कोई हिस्सा तब पूरा है जब gate pass हो।
  7. Lift: जब कुछ भी original पर fall back नहीं करता, तो app lift proxy हटा देता है।

go

sh
ruby-anything go [-- <command that starts the app>]

हर run अगले stage पर जाता है और अगला task rails/port/TASK.md में लिखता है। पहला run analyze करता है और आपके फ़ैसलों के लिए रुकता है; go तब तक इंतज़ार करता है जब तक DECISIONS.md में कम से कम एक ADR न हो।

Waves

analyze काम को waves में क्रम देता है, सबसे निचली पहले, ताकि किसी route के models और services उसके controller से पहले Ruby में आ जाएँ:

Wave क्या move होता है
1 Models
2 Business logic
3 Routes और controllers
4 Views
5 Jobs और mailers
6 Lift

एक wave के units एक-दूसरे पर निर्भर नहीं होते, इसलिए एक wave को parallel में port किया जा सकता है।

इस page को GitHub पर edit करें →