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

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

Instance Method Summary collapse

Methods inherited from BlockConfig

config, inherited, #initialize, #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”



584
585
586
# File 'lib/utils/config_file.rb', line 584

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