Puppet Function: ssh::fix_eol

Defined in:
functions/fix_eol.pp
Function type:
Puppet Language

Overview

ssh::fix_eol(String $value)String

Ensure line endings are correct for the current platform.

Parameters:

  • value (String)

    The string to perform a line ending conversion on.

Returns:

  • (String)

    Returns a string with the desired line ending.



6
7
8
9
10
11
12
# File 'functions/fix_eol.pp', line 6

function ssh::fix_eol ( String $value ) >> String {
  if $ssh::params::dos_line_endings {
    unix2dos($value)
  } else {
    dos2unix($value)
  }
}