Przeglądaj źródła

Move before/after_everything hooks so they're easier to find.

Dan Helfman 4 lat temu
rodzic
commit
5356f487a5
1 zmienionych plików z 20 dodań i 20 usunięć
  1. 20 20
      borgmatic/config/schema.yaml

+ 20 - 20
borgmatic/config/schema.yaml

@@ -506,6 +506,26 @@ map:
                     "check" action or an associated before/after hook.
                 example:
                     - echo "Error during prune/create/check."
+            before_everything:
+                seq:
+                    - type: str
+                desc: |
+                    List of one or more shell commands or scripts to execute
+                    before running all actions (if one of them is "create").
+                    These are collected from all configuration files and then
+                    run once before all of them (prior to all actions).
+                example:
+                    - echo "Starting actions."
+            after_everything:
+                seq:
+                    - type: str
+                desc: |
+                    List of one or more shell commands or scripts to execute
+                    after running all actions (if one of them is "create").
+                    These are collected from all configuration files and then
+                    run once after all of them (after any action).
+                example:
+                    - echo "Completed actions."
             postgresql_databases:
                 seq:
                     - map:
@@ -693,26 +713,6 @@ map:
                     documentation for details.
                 example:
                     https://cronhub.io/start/1f5e3410-254c-11e8-b61d-55875966d01
-            before_everything:
-                seq:
-                    - type: str
-                desc: |
-                    List of one or more shell commands or scripts to execute
-                    before running all actions (if one of them is "create").
-                    These are collected from all configuration files and then
-                    run once before all of them (prior to all actions).
-                example:
-                    - echo "Starting actions."
-            after_everything:
-                seq:
-                    - type: str
-                desc: |
-                    List of one or more shell commands or scripts to execute
-                    after running all actions (if one of them is "create").
-                    These are collected from all configuration files and then
-                    run once after all of them (after any action).
-                example:
-                    - echo "Completed actions."
             umask:
                 type: scalar
                 desc: |