public/Remove-PulpIso.ps1
# .ExternalHelp powershell-pulp-help.xml Function Remove-PulpIso { [CmdletBinding()] Param( [string]$Server, [int]$Port, [string]$Protocol, [string]$AuthenticationMethod, [Parameter(Mandatory=$true, ValueFromPipeline=$true)] [PSCustomObject[]]$ContentUnit, [Parameter(Mandatory=$false)] [switch]$NoPublish ) Begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand( 'Remove-PulpContentUnit', [System.Management.Automation.CommandTypes]::Function) $scriptCmd = {& $wrappedCmd @PSBoundParameters -Type 'iso'} $steppablePipeline = $scriptCmd.GetSteppablePipeline() $steppablePipeline.Begin($PSCmdlet) } catch { throw } } Process { try { $steppablePipeline.Process($_) } catch { throw } } End { try { $steppablePipeline.End() } catch { throw } } } |