Commit Graph

43 Commits (94de4db928c274b4aa5006530789820c5bb7f5fa)

Author SHA1 Message Date
Stephen Fromm f52624f6d2 Give nice error message if destination directory doesn't exist (issue #1048)
14 years ago
Brian Coca 88d1285f33 time is what i wanted, not gmtime
14 years ago
Brian Coca 06b914c5b3 small fix to prevent temp file from living past its succesful usage
14 years ago
Brian Coca f5481621f8 made copy atomic by creating tmp file in dest location (ensures same partition)
14 years ago
Michael DeHaan aa704a6111 backuplocal => backup_local for API standardization reasons
14 years ago
Daniel Hokka Zakrisson dfcb9d3c2d Move backup to module_common
14 years ago
Seth Vidal 588b129018 fix case where destination does not yet exist - no backup can be made
14 years ago
Seth Vidal 28e9b1128f add backup= option to copy. makes a backup of the file on the target
14 years ago
Michael DeHaan faed4b5a33 whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added
14 years ago
Michael DeHaan 7e9e29011e Add encoding lines to python modules such that they can take unicode options if they are fed them, since the
14 years ago
Will Thames 0e26ef9bdd Revert acceptance of directory as dest for copy
14 years ago
Michael DeHaan ed14312ad6 reinstate invalid argument checks where possible, daisy chainee/chained modules turn it off
14 years ago
u348095 3cb51acd78 Allow copy dest argument to be a directory
14 years ago
Michael DeHaan 9f149c9f1a imports not needed
14 years ago
Michael DeHaan d0f4358730 Port the copy module over to the new "common module" logic.
14 years ago
John Kleint 375a1eaf43 Use iterative MD5 hashing.
14 years ago
Dave Hatton 55694db7c3 switch to hashlib.md5 or md5 instead of OS md5 commands
14 years ago
Dave Hatton ecaa794f7f copy always returned change=true
14 years ago
Dave Hatton 9d85a55434 switch to shutil.copy rather than os.system(cp)
14 years ago
Dave Hatton 263fcab594 md5 allow copy if file is missing
14 years ago
Jeremy Smitherman 3003aa2d47 Added IndexError catch for copy module, IndexError is thrown if a destination file doesn't exist
14 years ago
Dave Hatton d47de18b6c improve error trapping for md5
14 years ago
Ingo Gottwald a42167ca73 Copy module: Extended error handling and fixed error messages
14 years ago
Ingo Gottwald 270266e920 Added to copy module: Error handling for missing permissions on the copy destination
14 years ago
Michael DeHaan 25083953fc Merge pull request #495 from nafeger/devel
14 years ago
Nathan A. Feger 26816b72ec attempt to make copy more idiomatic.
14 years ago
Fred Alger 834f6a216d Make shell outs to md5sum work on FreeBSD and OS X
14 years ago
Stephen Fromm aea022b002 Apply logging of arguments to modules (issue #122)
14 years ago
Seth Vidal c701e59592 very minor indentation issue in librar/copy
14 years ago
Michael DeHaan 7794493952 Don't try to expand path for None values
14 years ago
Michael DeHaan 445e48b991 Call os.path.expanduser in modules so things work as expected even when using ./hacking/test-module script
14 years ago
Jeroen Hoekx 38a33c54a6 Make copy module idempotent.
14 years ago
Michael DeHaan 4bde4926c3 Modules don't have to return JSON, key=value pairs is ok.
14 years ago
Michael DeHaan aeea46678d Fix the copy module to use the argsfile method
14 years ago
Michael DeHaan eaa7714ff8 Laying the groundwork for async mode, async status script still needs to be done, and async_wrapper
14 years ago
Michael DeHaan be4cb64c92 Relicensing to GPLv3, all previous committers ok'd on mailing list.
14 years ago
Michael DeHaan ba4e36a9a9 Rename 'ensure' to 'state' because I think it's a bit cleaner and doesn't imply
14 years ago
Michael DeHaan 61d064d011 Fixed up KV munging in runner, misc fixes to copy, setup, and template modules
14 years ago
Michael DeHaan e5f62f20b1 make copy & template module take key/value parameters so we're consistent. Only the command
14 years ago
Michael DeHaan deb71da91e trim md5sum string so it does not contain the filename
14 years ago
Michael DeHaan b44ae0af90 applying indentation patch from skvidal
14 years ago
Michael DeHaan 6cceaa5f6a Implment copy with an actual minion-side module such that we can get md5sum's and
14 years ago
Michael DeHaan 3807824c6d Added file copy support w/ readme updates
14 years ago