Skip to content

Commit

Permalink
Add Endpoint to push - see fsprojects/Paket#652
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Feb 25, 2015
1 parent ef6d305 commit 1c6ff7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/FakeLib/PaketHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type PaketPushParams =
{ ToolPath : string
TimeOut : TimeSpan
PublishUrl : string
EndPoint : string
WorkingDir : string
AccessKey : string }

Expand All @@ -39,6 +40,7 @@ let PaketPushDefaults() : PaketPushParams =
{ ToolPath = (findToolFolderInSubPath "paket.exe" (currentDirectory @@ ".paket")) @@ "paket.exe"
TimeOut = TimeSpan.FromMinutes 5.
PublishUrl = "https://nuget.org"
EndPoint = "/api/v2/package"
WorkingDir = "."
AccessKey = null }

Expand Down Expand Up @@ -77,6 +79,6 @@ let Push setParams =
let pushResult =
ExecProcess (fun info ->
info.FileName <- parameters.ToolPath
info.Arguments <- sprintf "push url %s file %s" parameters.PublishUrl package) System.TimeSpan.MaxValue
info.Arguments <- sprintf "push url %s endpoint %s file %s" parameters.PublishUrl parameters.EndPoint package) System.TimeSpan.MaxValue
if pushResult <> 0 then failwithf "Error during pushing %s." package
traceEndTask "PaketPush" (separated ", " packages)

0 comments on commit 1c6ff7f

Please sign in to comment.