Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 749 Bytes

lifecycle.md

File metadata and controls

26 lines (19 loc) · 749 Bytes

BootMe

Task Lifecycle

  • bootme.Task()

  • Load configuration

  • bootme.Task#validateConfig()

  • Fire onBefore hooks

  • Fire onInit hooks (init is also a hook)

  • Fire action

  • bootme.Task#validateResult()

  • Fire onAfter hooks

    An error in the cycle will abort the complete pipeline and execute the onRollback (rollback is also a hook) handlers of all Tasks.

Rollback Lifecycle

  • Fire global onRollback hooks
  • Fire all onRollback hooks from all Tasks in reverse order

Restore Lifecycle

  • Fire global onTaskStart hooks
  • Fire onInit hooks (init is also a hook)
  • Fire global onTaskEnd hooks
  • Execute Rollback lifecycle