summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/to_bytes.rb
AgeCommit message (Collapse)Author
2012-08-14(#15872) Add to_bytes functionErik Dalén
Converts a string like "2 MB" to the value in bytes. Useful for comparisons on facts that return a human readable number instead of machine readable.