-
Notifications
You must be signed in to change notification settings - Fork 224
Open
Description
bolt/spec/shared_examples/transport.rb
Lines 52 to 71 in 878b1e5
def windows_context | |
{ | |
stdout_command: ['echo hello', /hello/], | |
stderr_command: ['$host.ui.WriteErrorLine("oops")', /oops/], | |
pipe_command: ["Get-Service | Where-Object {$_.Name -like \"*net*\"}", /Netman/], | |
destination_dir: 'C:/mytmp', | |
supported_req: 'powershell', | |
extension: '.ps1', | |
unsupported_req: 'shell', | |
cat_cmd: 'cat', | |
rm_cmd: 'rm -Recurse -Force', | |
ls_cmd: 'ls -Name', | |
env_command: 'Write-Output ${env:BOLT_TEST_VAR}', | |
env_task: "Write-Output \"${env:PT_message_one}\n${env:PT_message_two}\"", | |
stdin_task: "$line = [Console]::In.ReadLine()\nWrite-Output \"$line\"", | |
find_task: 'Get-ChildItem -Path $env:PT__installdir -Recurse -File | % { Write-Host $_.Length $_.FullName }', | |
identity_script: "echo $PSScriptRoot", | |
echo_script: "$args | ForEach-Object { Write-Output $_ }" | |
} | |
end |
$env:PT__installdir
Is not available in the scope of a PowerShell task. Part of the declaration of the task requires the PowerShell to expect _installdir
as a passed argument for the value to extend scope.
Metadata
Metadata
Assignees
Labels
No labels