Update gitignore and readme example.
On Windows, use well-known SIDs to set ownership
This gives you more control over the extraction of tarballs.
Use $target_file in *_get variables, not $name
fix typo in error message
This is per the recommendation of Josh Cooper. We want to ensure that non-privileged users don't have access to the directory. This should be the rough equivalent of setting owner=root group=root on Unix.
Homogenize path-separator in staging_parse
Now that $target_file is being used to specify the download location for curl commands, the command expected in the tests has changed. This commit updates the tests to reflect that change.
The staging_parse() function manipulates input using Ruby libraries and path logic. However, the Ruby URI library expects that (even on Windows) paths will use "/" as a separator. Rather than special-case everything, resolve this inconsistency regarding Windows paths by enforcing that backslashes will simply be converted to forward-slashes before trying to operate on them with staging_parse(). Otherwise, using a source or target in the form of a Windows path with backslashes will cause the staging_parse() function to abort.
When a user specifies the $target parameter in a staging::file defined type, the intention is to fetch the file from $source and place it at $target. When $name is used in the $http_get variants, the retrieved file won't actually be placed at the $target location. This commit makes it so that curl and wget will always place the retrieved file in the $target_file location. This should not impact the behavior when a user doesn't specify $target, but should fix the unexpected behavior when they do.
Add support for .tar.bz2 archives to extract
Add /usr/sfw/bin to the solaris path
fix syntax error fix syntax error
This is because on Solaris, wget is available in the non-standard path /usr/sfw/bin as a last resort.
Missed one escape
* Detect %SYSTEMDRIVE%\ProgramData for Windows. * Use different default for Windows.
Previously, the hard-coded default staging path of "/opt/staging" precluded touch-free use of this module on the Windows platform. This commit adds the params pattern in order to allow the module to work on Windows platforms without modification. Further development would be a nice-to-have in terms of adding support for downloading various kinds of URLs; this is just the critical fix.