gini / puppet-archive

Puppet Module to download and extract tar.gz, tar.bz2, tar.xz, and zip archives
6 stars 22 forks source link

root_dir doesn't appear to function as I'd expect it to #12

Closed sdclee closed 10 years ago

sdclee commented 10 years ago

Using this:

archive { 'CodeIgniter_2.1.2':
    ensure      => present,
    extension   => 'zip',
    url         => 'http://test.softdev.co.uk/CodeIgniter_2.1.2.zip',
    root_dir    => '_ci',
    target      => '/var/www/CI',
    digest_type => 'md5',
}

I would expect the unzip to be in /var/www/CI/_ci but instead root_dir seems to be ignored and it ends up in /var/www/CI/CodeIgniter_2.1.2.