Remove gem and rake support files

This commit is contained in:
2023-11-04 14:13:59 +01:00
parent 0023fe0337
commit 9770cc8829
10 changed files with 27 additions and 214 deletions

View File

@ -3,7 +3,6 @@ module SlackBuilder.Download
, cloneAndArchive
, commit
, download
, downloadAndDeploy
, hostedSources
, remoteFileExists
, updateSlackBuildVersion
@ -207,19 +206,3 @@ clone repo tarball tagPrefix = do
in cloneAndArchive repo nameVersion tarballPath tagPrefix
>> uploadCommand tarball remotePath
>> liftIO (runConduitRes go) <&> Just
downloadAndDeploy :: Text -> Text -> SlackBuilderT (Maybe (Digest MD5))
downloadAndDeploy uri tarball = do
repository' <- SlackBuilderT $ asks repository
let tarballPath = Text.unpack tarball
remotePath = Text.pack $ joinPath $ ("/" :) $ drop 1 $ splitPath tarballPath
localPath = repository' </> tarballPath
remoteFileExists' <- remoteFileExists remotePath
if remoteFileExists'
then
hostedSources remotePath >>= flip download localPath
else do
checksum <- liftIO (mkURI uri) >>= flip download localPath
uploadCommand tarball remotePath
pure checksum