Ejemplo n.º 1
0
        public DeploymentActionResource AddOrUpdatePackageAction(string name, PackageResource package)
        {
            var action = AddOrUpdateAction(name);

            action.ActionType = "Octopus.TentaclePackage";
            action.Properties["Octopus.Action.Package.PackageId"] = package.PackageId;
            action.Properties["Octopus.Action.Package.FeedId"]    = package.FeedId;

            return(action);
        }
 public Task DeletePackage(PackageResource package)
 {
     return client.Delete(client.RootDocument.Link("Packages"), new { id = package.Id });
 }
 public void DeletePackage(PackageResource package)
 {
     client.Delete(client.RootDocument.Link("Packages"), new { id = package.Id });
 }
        public DeploymentActionResource AddOrUpdatePackageAction(string name, PackageResource package)
        {
            var action = AddOrUpdateAction(name);

            action.ActionType = "Octopus.TentaclePackage";
            action.Properties["Octopus.Action.Package.PackageId"] = package.PackageId;
            action.Properties["Octopus.Action.Package.FeedId"] = package.FeedId;

            return action;
        }