Fora
  • Getting Started
  • Outlining the differences
  • Frequently Asked Questions
  • Usage
    • Introduction
      • Inventories
      • Hosts & Groups
      • Scripts
    • Best practices
  • API
    • Operations Index
    • Fora API
      • fora.connectors
        • connectors.connector
        • connectors.local
        • connectors.ssh
        • connectors.tunnel_connector
        • connectors.tunnel_dispatcher
      • fora.operations
        • operations.api
        • operations.apt
        • operations.files
        • operations.git
        • operations.local
        • operations.pacman
        • operations.pip
        • operations.portage
        • operations.postgres
        • operations.system
        • operations.systemd
        • operations.utils
      • fora.connection
      • fora.example_deploys
      • fora.inventory_wrapper
      • fora.loader
      • fora.logger
      • fora.main
      • fora.remote_settings
      • fora.types
      • fora.utils
      • fora.version
  • Examples
    • Managing dotfiles
    • Using secrets
  • Links
    • Fora on GitHub
Powered by GitBook
On this page
  • class local.LocalConnector
  • def LocalConnector.command()
  • def LocalConnector.extract_hostname()
  1. API
  2. Fora API
  3. fora.connectors

connectors.local

Contains a connector which handles connections to hosts via SSH.

class local.LocalConnector

A tunnel connector that provides remote access to the current local machine via a subprocess.

def LocalConnector.command()

def LocalConnector.command(self) -> list[str]:

Constructs the full command needed to execute a tunnel dispatcher on this machine.

Returns

  • list[str]: The required ssh command.

def LocalConnector.extract_hostname()

def LocalConnector.extract_hostname(cls, url: str) -> str:
Previousconnectors.connectorNextconnectors.ssh

Last updated 3 years ago