Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TreeToFileConverter

A converter to convert a socko-api SockoNodeInterface tree into a file tree

Hierarchy

  • TreeToFileConverter

Index

Constructors

constructor

Properties

Private _log

_log: Logger

Private _options

Methods

Private _convert

  • _convert(node: SockoNodeInterface): Bluebird<void>

Private _processDirectory

  • _processDirectory(node: SockoNodeInterface, nodePath: string): Bluebird<void>
  • Convert a socko-api BranchNodeInterface into a directory

    Parameters

    • node: SockoNodeInterface

      current BranchNodeInterface node to process

    • nodePath: string

      output path to use

    Returns Bluebird<void>

Private _processFile

  • _processFile(node: SockoNodeInterface, nodePath: string): Bluebird<void>
  • Convert a socko-api OutputNodeInterface into a file

    Parameters

    • node: SockoNodeInterface

      node to process

    • nodePath: string

      output path to use

    Returns Bluebird<void>

convert

  • convert(root: RootNodeInterface): Bluebird<void>

Generated using TypeDoc