(source_path, destination_path)
| 1216 | end |
| 1217 | |
| 1218 | def sign(source_path, destination_path) |
| 1219 | if File.exist?(destination_path) |
| 1220 | return if valid_sign?(source_path, destination_path) |
| 1221 | rm(destination_path, verbose: false) |
| 1222 | end |
| 1223 | sh("gpg", |
| 1224 | "--armor", |
| 1225 | "--detach-sign", |
| 1226 | "--local-user", gpg_key_id, |
| 1227 | "--output", destination_path, |
| 1228 | source_path, |
| 1229 | out: default_output, |
| 1230 | verbose: verbose?) |
| 1231 | end |
| 1232 | |
| 1233 | def sha512(source_path, destination_path) |
| 1234 | if File.exist?(destination_path) |