Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding SpecificMachines option to OctoTools #631

Merged
merged 1 commit into from
Jan 21, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/app/FakeLib/OctoTools.fs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ type DeployReleaseOptions = {
Force : bool
WaitForDeployment : bool
DeploymentTimeout : TimeSpan option
DeploymentCheckSleepCycle : TimeSpan option }
DeploymentCheckSleepCycle : TimeSpan option
SpecificMachines : string option }

/// Options for deleting a range of releases in a project
type DeleteReleaseOptions = {
Expand Down Expand Up @@ -66,7 +67,7 @@ let releaseOptions = {
/// Default options for 'DeployRelease'
let deployOptions = {
Project = ""; DeployTo = ""; Version = ""; Force = false; WaitForDeployment = false;
DeploymentTimeout = None; DeploymentCheckSleepCycle = None }
DeploymentTimeout = None; DeploymentCheckSleepCycle = None; SpecificMachines = None }

/// Default options for 'DeleteReleases'
let deleteOptions = {
Expand Down Expand Up @@ -119,7 +120,8 @@ let deployCommandLine (opts:DeployReleaseOptions) =
(flag "force" opts.Force)
(flag "waitfordeployment" opts.WaitForDeployment)
(optionalObjParam "deploymenttimeout" opts.DeploymentTimeout)
(optionalObjParam "deploymentchecksleepcycle" opts.DeploymentCheckSleepCycle) ]
(optionalObjParam "deploymentchecksleepcycle" opts.DeploymentCheckSleepCycle)
(optionalStringParam "specificmachines" opts.SpecificMachines) ]
|> List.fold (+) ""

/// [omit]
Expand Down