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
It turns out that using local variables (like "hostname") in templates | |
instead of instance variables (like "@hostname") is a really bad idea: | |
# Ruby treats variables like methods, so we used to expose variables | |
# within scope to the ERB code via method_missing. As per RedMine #1427, | |
# though, this means that conflicts between methods in our inheritance | |
# tree (Kernel#fork) and variable names (fork => "yes/no") could arise. | |
# | |
# Worse, /new/ conflicts could pop up when a new kernel or object method | |
# was added to Ruby, causing templates to suddenly fail mysteriously when |
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/bash | |
cat <<EOF | |
_______... | |
.-'"..........\`\`~. | |
,.-".................."-. | |
,/........................": | |
,?............................\\ | |
/..............................,} |