This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String firstLetterCapitalWithSingleSpace(final String words) { | |
return Stream.of(words.trim().split("\\s")) | |
.filter(word -> word.length() > 0) | |
.map(word -> word.substring(0, 1).toUpperCase() + word.substring(1)) | |
.collect(Collectors.joining(" ")); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Required GEM version for librarian puppet | |
REQUIRED_GEM_VERSION=1.9 | |
PUPPET_DIR=/etc/puppet/ | |
# Set correct package manager | |
set_package_manager() | |
{ | |
# Determine which package manager to use |
NewerOlder