diff two files
(self, local_path, deployed_path, header=False)
| 172 | return ''.join(ret) |
| 173 | |
| 174 | def _diff(self, local_path, deployed_path, header=False): |
| 175 | """diff two files""" |
| 176 | out = diff(modified=local_path, original=deployed_path, |
| 177 | diff_cmd=self.diff_cmd, debug=self.debug) |
| 178 | if header and out: |
| 179 | lshort = os.path.basename(local_path) |
| 180 | out = f'=> diff \"{lshort}\":\n{out}' |
| 181 | return out |