RamblingCookieMonster / PSDeploy

Simple PowerShell based deployments
http://ramblingcookiemonster.github.io/PSDeploy-Take-Two/
MIT License
347 stars 69 forks source link

Add FileSystemDiff deployment type #74

Closed martin9700 closed 7 years ago

martin9700 commented 7 years ago

Deploy files using Copy-Item, but first check if the code in the destination file has changed since the last deployment.

Scenarios:

  1. File does not exist at destination: Copy from code control. Create a hash file.
  2. File exists at destination, but no hash file: Copy from code control. Create a hash file.
  3. File exists at destination, matching hash file: Copy from code control. Create a new hash file.
  4. File exists at destination, hash file does not match: two scenario's here: a. SaveDiff not set: Show warning that destination file is different. Overwrite from code control. Create new hash file. b. SaveDiff set: Show warning. Rename destination file. Copy from code control. Create new hash file.
martin9700 commented 7 years ago

Bump. Any chance of this happening soon?

RamblingCookieMonster commented 7 years ago

Interesting idea, thanks for submitting it! Merging

martin9700 commented 7 years ago

Thanks Warren!!