Extract archived files with the help of various archivers programs.
Other
Switch branches/tags
Nothing to show
Latest commit b8322a4 Apr 27, 2017 @melezhik committed on GitHub Merge pull request #3 from zoffixznet/patch-1
Use modern META filename
Permalink
Failed to load latest commit information.
lib/Sparrowdo add gem files support Jan 1, 2017
t add-files Aug 26, 2016
.travis.yml Add Travis-CI configuration Nov 21, 2016
META6.json Use modern META filename Apr 25, 2017
README add-files Aug 26, 2016
README.md add gem files support Jan 1, 2017
sparrowfile working-examples Aug 26, 2016

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