Extract archived files with the help of various archivers programs.
Perl6
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/Sparrowdo
t
.travis.yml
META6.json
README
README.md
sparrowfile

README.md

SYNOPSIS

Extract archived files with the help of various archivers programs.

Archive formats supported:

+-----------+---------------------------+
| extension | internal archive program  |
+-----------+---------------------------+
| *.zip     | unzip                     |
| *.tar     | tar                       |
| *.tar.gz  | tar                       |
| *.gem     | gem                       |
+-----------+---------------------------+

INSTALL

$ panda install Sparrowdo::Archive

USAGE

$ cat sparrow file

module_run 'Archive', %(
  source  => '/tmp/nginx/nginx-1.11.3.tar.gz',
  target  => '/home/app-user/apps/nginx',
  user    => 'app-user',
  verbose => 1,
);

Parameters

source

A local file path to archived file. Obligatory. No default.

target

A local file path where to store extracted archive data. No default value. Obligatory.

user

A user which run a archive program and thus to which user extracted files will belong to. Optional. No default value.

verbose

Try to run archive extractor program in verbose mode. Default value is 0 ( no verbose ). Optional.

Author

Alexey Melezhik