Class: Utils::ConfigFile::SshTunnel::CopyPaste

Inherits:
BlockConfig show all
Defined in:
lib/utils/config_file.rb

Overview

Manages the copy/paste functionality configuration for SSH tunnels.

This class handles the setup and configuration of copy/paste capabilities within SSH tunnel sessions, allowing users to define network addresses, ports, and other parameters needed for establishing and managing copy/paste connections through SSH tunnels.

Instance Method Summary collapse

Methods inherited from BlockConfig

config, inherited, #initialize, lazy_config, #to_ruby

Constructor Details

This class inherits a constructor from Utils::ConfigFile::BlockConfig

Instance Method Details

#to_sString

The to_s method returns a colon-separated string representation of the SSH tunnel specification.

This method combines the bind address, port, host, and host port components into a single string format using colons as separators.

Returns:

  • (String)

    a colon-separated string containing the tunnel specification in the format “bind_address:port:host:host_port”



678
679
680
# File 'lib/utils/config_file.rb', line 678

def to_s
  [ bind_address, port, host, host_port ] * ':'
end