Skip to content
Extract archived files with the help of various archivers programs.
Other
  1. Other 100.0%
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
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

You can’t perform that action at this time.