{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/text.converter.ts",
          "name": "stamp",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-converters-text-converter-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/converters/text.converter.ts",
            "label": "core/converters/text.converter.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/converters/text.converter.ts.md",
            "ref": "anatomy:file-deploy-core-converters-text-converter-ts"
          }
        },
        {
          "file": "core/steps/recovery.step.ts",
          "name": "managedTargets",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-recovery-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/recovery.step.ts",
            "label": "core/steps/recovery.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/recovery.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-recovery-step-ts"
          }
        },
        {
          "file": "core/steps/recovery.step.ts",
          "name": "pullEach",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-recovery-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/recovery.step.ts",
            "label": "core/steps/recovery.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/recovery.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-recovery-step-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "runtime/entrypoints/deployment.entrypoint.ts",
          "name": "release",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-runtime-entrypoints-deployment-entrypoint-ts",
            "json": "https://banes-lab.com/json/source/deploy/runtime/entrypoints/deployment.entrypoint.ts",
            "label": "runtime/entrypoints/deployment.entrypoint.ts",
            "markdown": "https://banes-lab.com/source/deploy/runtime/entrypoints/deployment.entrypoint.ts.md",
            "ref": "anatomy:file-deploy-runtime-entrypoints-deployment-entrypoint-ts"
          }
        },
        {
          "file": "runtime/entrypoints/nginx.entrypoint.ts",
          "name": "push",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-runtime-entrypoints-nginx-entrypoint-ts",
            "json": "https://banes-lab.com/json/source/deploy/runtime/entrypoints/nginx.entrypoint.ts",
            "label": "runtime/entrypoints/nginx.entrypoint.ts",
            "markdown": "https://banes-lab.com/source/deploy/runtime/entrypoints/nginx.entrypoint.ts.md",
            "ref": "anatomy:file-deploy-runtime-entrypoints-nginx-entrypoint-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 88,
      "name": "pullManaged",
      "signature": "export const pullManaged = async function pullManaged(shell: Shell, journal: Journal): Promise<ManagedBackup[]> {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/steps/recovery.step.ts",
          "name": "restoreEach",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-recovery-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/recovery.step.ts",
            "label": "core/steps/recovery.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/recovery.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-recovery-step-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "runtime/entrypoints/deployment.entrypoint.ts",
          "name": "release",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-runtime-entrypoints-deployment-entrypoint-ts",
            "json": "https://banes-lab.com/json/source/deploy/runtime/entrypoints/deployment.entrypoint.ts",
            "label": "runtime/entrypoints/deployment.entrypoint.ts",
            "markdown": "https://banes-lab.com/source/deploy/runtime/entrypoints/deployment.entrypoint.ts.md",
            "ref": "anatomy:file-deploy-runtime-entrypoints-deployment-entrypoint-ts"
          }
        },
        {
          "file": "runtime/entrypoints/nginx.entrypoint.ts",
          "name": "push",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-runtime-entrypoints-nginx-entrypoint-ts",
            "json": "https://banes-lab.com/json/source/deploy/runtime/entrypoints/nginx.entrypoint.ts",
            "label": "runtime/entrypoints/nginx.entrypoint.ts",
            "markdown": "https://banes-lab.com/source/deploy/runtime/entrypoints/nginx.entrypoint.ts.md",
            "ref": "anatomy:file-deploy-runtime-entrypoints-nginx-entrypoint-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 108,
      "name": "restoreManaged",
      "signature": "export const restoreManaged = async function restoreManaged("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/nginx.converter.ts",
          "name": "scriptNameOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-converters-nginx-converter-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/converters/nginx.converter.ts",
            "label": "core/converters/nginx.converter.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/converters/nginx.converter.ts.md",
            "ref": "anatomy:file-deploy-core-converters-nginx-converter-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/steps/recovery.step.ts",
          "name": "managedTargets",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-recovery-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/recovery.step.ts",
            "label": "core/steps/recovery.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/recovery.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-recovery-step-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "scriptTargets",
      "signature": "const scriptTargets = function scriptTargets(): string[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/steps/recovery.step.ts",
          "name": "scriptTargets",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-recovery-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/recovery.step.ts",
            "label": "core/steps/recovery.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/recovery.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-recovery-step-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/steps/recovery.step.ts",
          "name": "pullManaged",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-recovery-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/recovery.step.ts",
            "label": "core/steps/recovery.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/recovery.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-recovery-step-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 41,
      "name": "managedTargets",
      "signature": "export const managedTargets = function managedTargets(): string[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/steps/nginx.step.ts",
          "name": "installConfig",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-nginx-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/nginx.step.ts",
            "label": "core/steps/nginx.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/nginx.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-nginx-step-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/steps/recovery.step.ts",
          "name": "restoreManaged",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-recovery-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/recovery.step.ts",
            "label": "core/steps/recovery.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/recovery.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-recovery-step-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 93,
      "name": "restoreEach",
      "signature": "const restoreEach = async function restoreEach("
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/steps/recovery.step.ts",
          "name": "pullManaged",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-recovery-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/recovery.step.ts",
            "label": "core/steps/recovery.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/recovery.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-recovery-step-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 74,
      "name": "pullEach",
      "signature": "const pullEach = async function pullEach("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "scripts",
      "signature": "const scripts = absolutePath(\"app.nginxScripts\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 42,
      "name": "main",
      "signature": "const main = existsSync(absolutePath(\"app.nginxMain\")) ? [NGINX_ROOT + PATH_SEPARATOR + MAIN_CONFIG] : [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 43,
      "name": "site",
      "signature": "const site = existsSync(absolutePath(\"app.nginxSite\")) ? [REMOTE_SITE_CONFIG] : [];"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 47,
      "name": "backupNameOf",
      "signature": "export const backupNameOf = function backupNameOf(remote: string, at: string): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 48,
      "name": "base",
      "signature": "const base = remote.slice(remote.lastIndexOf(PATH_SEPARATOR) + 1);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 49,
      "name": "dot",
      "signature": "const dot = base.lastIndexOf(NAME_SEPARATOR);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 56,
      "name": "pullOne",
      "signature": "const pullOne = async function pullOne("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 62,
      "name": "present",
      "signature": "const present = await shell.run(`${FILE_TEST_COMMAND} ${remote}`);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 66,
      "name": "folder",
      "signature": "const folder = absolutePath(\"app.backups\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 68,
      "name": "local",
      "signature": "const local = join(folder, backupNameOf(remote, at));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 84,
      "name": "backup",
      "signature": "const backup = await pullOne(shell, journal, remote, at);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 98,
      "name": "rest]",
      "signature": "const [backup, ...rest] = backups;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 115,
      "name": "test",
      "signature": "const test = await shell.run(TEST_COMMAND);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 119,
      "name": "reload",
      "signature": "const reload = await shell.run(RELOAD_COMMAND);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-recovery-step-ts",
  "language": "typescript",
  "layer": "application",
  "name": "recovery.step.ts",
  "path": "core/steps/recovery.step.ts",
  "ref": "anatomy:file-deploy-core-steps-recovery-step-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/deploy#folder-deploy-core-steps",
          "json": "https://banes-lab.com/json/anatomy/deploy/folder-deploy-core-steps",
          "label": "core/steps",
          "markdown": "https://banes-lab.com/anatomy/deploy/folder-deploy-core-steps.md",
          "ref": "chapter:/anatomy/deploy#folder-deploy-core-steps"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-converters-nginx-converter-ts",
          "json": "https://banes-lab.com/json/source/deploy/core/converters/nginx.converter.ts",
          "label": "core/converters/nginx.converter.ts",
          "markdown": "https://banes-lab.com/source/deploy/core/converters/nginx.converter.ts.md",
          "ref": "anatomy:file-deploy-core-converters-nginx-converter-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-converters-text-converter-ts",
          "json": "https://banes-lab.com/json/source/deploy/core/converters/text.converter.ts",
          "label": "core/converters/text.converter.ts",
          "markdown": "https://banes-lab.com/source/deploy/core/converters/text.converter.ts.md",
          "ref": "anatomy:file-deploy-core-converters-text-converter-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-nginx-step-ts",
          "json": "https://banes-lab.com/json/source/deploy/core/steps/nginx.step.ts",
          "label": "core/steps/nginx.step.ts",
          "markdown": "https://banes-lab.com/source/deploy/core/steps/nginx.step.ts.md",
          "ref": "anatomy:file-deploy-core-steps-nginx-step-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/deploy#file-deploy-runtime-entrypoints-deployment-entrypoint-ts",
          "json": "https://banes-lab.com/json/source/deploy/runtime/entrypoints/deployment.entrypoint.ts",
          "label": "runtime/entrypoints/deployment.entrypoint.ts",
          "markdown": "https://banes-lab.com/source/deploy/runtime/entrypoints/deployment.entrypoint.ts.md",
          "ref": "anatomy:file-deploy-runtime-entrypoints-deployment-entrypoint-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/deploy#file-deploy-runtime-entrypoints-nginx-entrypoint-ts",
          "json": "https://banes-lab.com/json/source/deploy/runtime/entrypoints/nginx.entrypoint.ts",
          "label": "runtime/entrypoints/nginx.entrypoint.ts",
          "markdown": "https://banes-lab.com/source/deploy/runtime/entrypoints/nginx.entrypoint.ts.md",
          "ref": "anatomy:file-deploy-runtime-entrypoints-nginx-entrypoint-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-rollback",
          "json": "https://banes-lab.com/json/records/architecture/rollback",
          "label": "Rollback",
          "markdown": "https://banes-lab.com/records/architecture/rollback.md",
          "ref": "architecture:rollback"
        }
      ],
      "relation": "evidence-for"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/deploy#folder-deploy-core-converters",
          "json": "https://banes-lab.com/json/anatomy/deploy/folder-deploy-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/deploy/folder-deploy-core-converters.md",
          "ref": "chapter:/anatomy/deploy#folder-deploy-core-converters"
        },
        {
          "href": "https://banes-lab.com/anatomy/deploy#folder-deploy-core-steps",
          "json": "https://banes-lab.com/json/anatomy/deploy/folder-deploy-core-steps",
          "label": "core/steps",
          "markdown": "https://banes-lab.com/anatomy/deploy/folder-deploy-core-steps.md",
          "ref": "chapter:/anatomy/deploy#folder-deploy-core-steps"
        },
        {
          "href": "https://banes-lab.com/anatomy/deploy#folder-deploy-runtime-entrypoints",
          "json": "https://banes-lab.com/json/anatomy/deploy/folder-deploy-runtime-entrypoints",
          "label": "runtime/entrypoints",
          "markdown": "https://banes-lab.com/anatomy/deploy/folder-deploy-runtime-entrypoints.md",
          "ref": "chapter:/anatomy/deploy#folder-deploy-runtime-entrypoints"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "step",
    "subject": "recovery",
    "variant": null
  },
  "stats": {
    "bytes": 4199,
    "callable": 8,
    "definitions": 20,
    "edges": 7,
    "exported": 10,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 5,
      "leaf": 1,
      "isolated": 14
    },
    "lines": {
      "blank": 8,
      "code": 116,
      "total": 124
    }
  },
  "summary": "116 lines of code and 20 definitions.",
  "text": "https://banes-lab.com/source/deploy/core/steps/recovery.step.ts.txt",
  "tree": "deploy",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-release-step-ts",
      "json": "https://banes-lab.com/json/source/deploy/core/steps/release.step.ts",
      "label": "core/steps/release.step.ts",
      "markdown": "https://banes-lab.com/source/deploy/core/steps/release.step.ts.md",
      "ref": "anatomy:file-deploy-core-steps-release-step-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-probe-step-ts",
      "json": "https://banes-lab.com/json/source/deploy/core/steps/probe.step.ts",
      "label": "core/steps/probe.step.ts",
      "markdown": "https://banes-lab.com/source/deploy/core/steps/probe.step.ts.md",
      "ref": "anatomy:file-deploy-core-steps-probe-step-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/deploy/core/steps",
    "label": "core/steps",
    "markdown": "https://banes-lab.com/api/source/deploy/core/steps.md",
    "ref": "api:source/deploy/core/steps"
  }
}
