Skip to content

Commit

Permalink
Merge pull request #664 from JonCanning/master
Browse files Browse the repository at this point in the history
Set PaketHelper ApiKey
  • Loading branch information
forki committed Feb 24, 2015
2 parents ef6d305 + 7d83d8d commit 7e7acee
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/FakeLib/PaketHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ type PaketPushParams =
TimeOut : TimeSpan
PublishUrl : string
WorkingDir : string
AccessKey : string }
ApiKey : string }

/// Paket push default parameters
let PaketPushDefaults() : PaketPushParams =
{ ToolPath = (findToolFolderInSubPath "paket.exe" (currentDirectory @@ ".paket")) @@ "paket.exe"
TimeOut = TimeSpan.FromMinutes 5.
PublishUrl = "https://nuget.org"
WorkingDir = "."
AccessKey = null }
ApiKey = null }

/// Creates a new NuGet package by using Paket pack on all paket.template files in the working directory.
/// ## Parameters
Expand Down Expand Up @@ -77,6 +77,8 @@ 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 file %s" parameters.PublishUrl package
if parameters.ApiKey <> null then
info.Arguments <- sprintf "%s apikey %s" info.Arguments parameters.ApiKey) System.TimeSpan.MaxValue
if pushResult <> 0 then failwithf "Error during pushing %s." package
traceEndTask "PaketPush" (separated ", " packages)

0 comments on commit 7e7acee

Please sign in to comment.