summaryrefslogtreecommitdiff
path: root/lib/facter/puppet_vardir.rb
diff options
context:
space:
mode:
authorErik Dalén <dalen@spotify.com>2012-08-07 23:36:20 +0200
committerJeff McCune <jeff@puppetlabs.com>2012-08-14 08:43:36 -0700
commit247b69cbc01741257c3d3b72ad75bb62325eaf49 (patch)
tree9c65541213d5c30e91d3b7e413efc49bf586363c /lib/facter/puppet_vardir.rb
parentdeafe88e02499a7bdababf0b5dc264fcc3edecf1 (diff)
downloadpuppet-stdlib-247b69cbc01741257c3d3b72ad75bb62325eaf49.tar.gz
puppet-stdlib-247b69cbc01741257c3d3b72ad75bb62325eaf49.tar.bz2
(#15872) Add to_bytes function
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.
Diffstat (limited to 'lib/facter/puppet_vardir.rb')
0 files changed, 0 insertions, 0 deletions