view modules/staging/tests/staging_parse.pp @ 26:58d1818c2ded puppet-3.6

Update MySQL module (which adds "staging" module)
author IBBoard <dev@ibboard.co.uk>
date Mon, 09 Mar 2015 01:34:59 +0000
parents
children
line wrap: on
line source

$file      = '/etc/puppetlabs/foo.bar.tar.gz'
$filename  = staging_parse($file)
$basename  = staging_parse($file, 'basename')
$extname   = staging_parse($file, 'extname')
$parent    = staging_parse($file, 'parent')
$rbasename = staging_parse($file, 'basename', '.tar.gz')

notice($filename)
notice($basename)
notice($extname)
notice($parent)
notice($rbasename)