Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

  • new default(hpcName: string, jobId?: string, maintainer?: default, env?: {}, is_cvmfs?: boolean): default

Properties

config: hpcConfig

config

db: default = ...
envCmd: string = "#!/bin/bash\n"
hpcName: string
is_cvmfs: boolean
jobId: string

properties

maintainer: default

parent pointer

remote_data_folder_path: string
remote_executable_folder_path: string
remote_result_folder_path: string

Methods

  • cat(path: string, options?: options): Promise<string>
  • aysnc

    creates an empty file at specified path

    param(string)

    path - specified path with filename

    param(object)

    options - dictionary with string options

    return(object)

    returns - command execution output

    Parameters

    Returns Promise<string>

  • createFile(content: string | Object, remotePath: string, options?: options, muteEvent?: boolean): Promise<void>
  • aysnc

    creates file with specified content

    param(string)

    content - file content

    param(string)

    path - specified path with filename

    param(object)

    options - dictionary with string options

    Parameters

    • content: string | Object
    • remotePath: string
    • options: options = {}
    • muteEvent: boolean = false

      set to True if you want to mute maintauner emitted Event

    Returns Promise<void>

  • download(from: string, to: string, muteEvent?: boolean): Promise<void>
  • aysnc

    Uncompresses the specified zip file to the Local folder

    throws

    {ConnectorError} - Thrown if maintainer emits 'SSH_SCP_DOWNLOAD_ERROR'

    Parameters

    • from: string

      input file string

    • to: string

      output folder

    • muteEvent: boolean = false

      set to True if you want to mute maintauner emitted Event

    Returns Promise<void>

  • exec(commands: string | string[], options?: options, muteEvent?: boolean, muteLog?: boolean, continueOnError?: boolean): Promise<out>
  • async

    Executes the command on the maintainer and returns the outpt

    Parameters

    • commands: string | string[]

      command/commands that need to be executed

    • options: options = {}

      execution options

    • muteEvent: boolean = true

      set to True if you want to mute maintauner emitted Event

    • muteLog: boolean = true

      set to True if you want to mute maintainer emitted Log

    • continueOnError: boolean = false

      set to True if you want the command/commands to continue despite errors

    Returns Promise<out>

    out - maintainer output

  • getRemoteDataFolderPath(providedPath?: string): string
  • gets remote data folder path

    param(string)

    providedPath - specified path

    return(object)

    returns - command execution output

    Parameters

    • providedPath: string = null

    Returns string

  • getRemoteExecutableFolderPath(providedPath?: string): string
  • gets remote executable folder path

    param(string)

    providedPath - specified path

    return(object)

    returns - command execution output

    Parameters

    • providedPath: string = null

    Returns string

  • getRemoteResultFolderPath(providedPath?: string): string
  • gets remote result folder path

    param(string)

    providedPath - specified path

    return(object)

    returns - command execution output

    Parameters

    • providedPath: string = null

    Returns string

  • homeDirectory(options?: options): Promise<string>
  • aysnc

    Returns the homeDirectory path

    param{object}

    options - dictionary with string options

    return{object}
    • returns command execution output

    Parameters

    Returns Promise<string>

  • ls(path?: string, options?: options): Promise<string>
  • aysnc

    Returns all of the files/directories in specified path

    param{string}

    path - specified path

    param{object}

    options - dictionary with string options

    return{object}
    • returns command execution output

    Parameters

    • path: string = undefined
    • options: options = {}

    Returns Promise<string>

  • mkdir(path: string, options?: options, muteEvent?: boolean): Promise<string>
  • aysnc

    creates directory at specified path

    param(string)

    path - specified path with filename

    param(object)

    options - dictionary with string options

    return(object)

    returns - command execution output

    Parameters

    • path: string
    • options: options = {}
    • muteEvent: boolean = false

      set to True if you want to mute maintauner emitted Event

    Returns Promise<string>

  • pwd(path?: string, options?: options): Promise<string>
  • aysnc

    Returns the specified path

    param{string}

    path - execution path

    param{object}

    options - dictionary with string options

    return{object}
    • returns command execution output

    Parameters

    • path: string = undefined
    • options: options = {}

    Returns Promise<string>

  • rm(path: string, options?: options, muteEvent?: boolean): Promise<string>
  • aysnc

    removes the file/folder at specified path

    param(string)

    path - specified path with filename

    param(object)

    options - dictionary with string options

    return(object)

    returns - command execution output

    Parameters

    • path: string
    • options: options = {}
    • muteEvent: boolean = false

      set to True if you want to mute maintauner emitted Event

    Returns Promise<string>

  • setRemoteDataFolderPath(providedPath: string): void
  • setRemoteExecutableFolderPath(providedPath: string): void
  • setRemoteResultFolderPath(providedPath: string): void
  • tar(from: string, to: string, options?: options, muteEvent?: boolean): Promise<string>
  • aysnc

    tars the file/directory at specified path

    param(string)

    from - input file/directory path

    param(string)

    to - compress file path with file name

    param(object)

    options - dictionary with string options

    return(object)

    returns - command execution output

    Parameters

    • from: string
    • to: string
    • options: options = {}
    • muteEvent: boolean = false

      set to True if you want to mute maintauner emitted Event

    Returns Promise<string>

  • transferFile(from: string, to: string, muteEvent?: boolean): Promise<void>
  • aysnc

    Transfers a file from the local machine to remote machine

    throws

    {ConnectorError} - Thrown if maintainer emits 'SSH_SCP_DOWNLOAD_ERROR'

    Parameters

    • from: string

      input file string

    • to: string

      output folder

    • muteEvent: boolean = false

      set to True if you want to mute maintauner emitted Event

    Returns Promise<void>

  • untar(from: string, to: string, options?: options, muteEvent?: boolean): Promise<string>
  • aysnc

    untars the file/directory at specified path

    param(string)

    from - input file/directory path

    param(string)

    to - compress file path with file name

    param(object)

    options - dictionary with string options

    return(object)

    returns - command execution output

    Parameters

    • from: string
    • to: string
    • options: options = {}
    • muteEvent: boolean = false

      set to True if you want to mute maintauner emitted Event

    Returns Promise<string>

  • unzip(from: string, to: string, options?: options, muteEvent?: boolean): Promise<string>
  • aysnc

    unzips the file/folder at specified path

    param(string)

    from - input file/directory path

    param(string)

    to - compress file path with file name

    param(object)

    options - dictionary with string options

    return(object)

    returns - command execution output

    Parameters

    • from: string
    • to: string
    • options: options = {}
    • muteEvent: boolean = false

      set to True if you want to mute maintauner emitted Event

    Returns Promise<string>

  • upload(from: string, to: string, muteEvent?: boolean): Promise<void>
  • aysnc

    Compresses the contents of the LocalFolder to the specified zip file

    throws

    {ConnectorError} - Thrown if maintainer emits 'SSH_SCP_DOWNLOAD_ERROR'

    Parameters

    • from: string

      input file string

    • to: string

      output folder

    • muteEvent: boolean = false

      set to True if you want to mute maintauner emitted Event

    Returns Promise<void>

  • whoami(options?: options): Promise<string>
  • aysnc

    Returns the username

    param{object}

    options - dictionary with string options

    return{object}
    • returns command execution output

    Parameters

    Returns Promise<string>

  • zip(from: string, to: string, options?: options, muteEvent?: boolean): Promise<string>
  • aysnc

    zips the file/directory at specified path

    param(string)

    from - input file/directory path

    param(string)

    to - compress file path with file name

    param(object)

    options - dictionary with string options

    return(object)

    returns - command execution output

    Parameters

    • from: string
    • to: string
    • options: options = {}
    • muteEvent: boolean = false

      set to True if you want to mute maintauner emitted Event

    Returns Promise<string>

Generated using TypeDoc