Commit Graph

15 Commits (5de3dbbf6d47ef156c2e14a4c81f3d756bf19732)

Author SHA1 Message Date
Andrea Scarpino 45a32137ad win_unzip: Use absolute path for src and dest
win_unzip fails to extract files when either src or dest contains
complex paths such as "..\..\" or "C:\\Program Files" (double slashes).
Fix this by fetching absolute path of both before invoking CopyHere
method.
2016-12-08 11:33:58 -05:00
Andrea Scarpino e16bd19401 win_unzip: overwrite any existing file 2016-12-08 11:33:58 -05:00
Corwin Brown dd918401f8 Added Error messages to the Try/Catch blocks 2016-12-08 11:33:47 -05:00
Corwin Brown e0fa5fa74c Switching to Get-AnsibleParam
Switching to Win_Unzip
2016-12-08 11:33:47 -05:00
Corwin Brown 34ff61e24f Made Powershell Strict Complient 2016-12-08 11:33:47 -05:00
Phil 01b36130a8 use convertto-bool for rm and recurse params 2016-12-08 11:32:59 -05:00
Phil 2d1189dee8 removes restart functionality, and added creates param for idempotency 2016-12-08 11:32:59 -05:00
Phil af660c38fa fixes typo 2016-12-08 11:32:59 -05:00
Phil 8d9697e7fe update to not auto-install PSCX - will use built-in powershell method instead for .zip files - added example for installing pscx as a pretask 2016-12-08 11:32:59 -05:00
schwartzmx 97744b2dc0 fixes unzip bug for zip files, thanks to @ryanwalls - also fixes possible import errors, and switches to use Start-Process on install to correctly wait 2016-12-08 11:32:59 -05:00
schwartzmx 6439c96b2b updates docs, adds unzip func for bz2 gz tar msu¬ - Added functionality for unzipping/decompressing bzip gzip tar exe (self extracting) and msu (ms update) files to coincide with added functionality to win_zip¬ - Added functionality requires PSCX (it will be installed if it can't be imported)¬¬ - First try with chocolatey, if fail, direct install from msi - Added recurse param to recursively unzip files from a compressed folder¬ - useful for example: unzipping a Log.zip file that contains a load of .gz files¬ - setting rm param to true will remove all compressed files after decompressing¬ 2016-12-08 11:32:59 -05:00
Phil Schwartz c5770b9fe0 fixes rm & restart param checks 2016-12-08 11:32:59 -05:00
Phil Schwartz 17f160244f edit check for extension to use library func 2016-12-08 11:32:59 -05:00
Phil Schwartz 074305a67d specifies creation of directory if !exists - added try catch for creation of directory, in case of an invalid path specified - added specification to documentation 2016-12-08 11:32:59 -05:00
Phil Schwartz 6f7835a73f init commit 2016-12-08 11:32:59 -05:00