Sha256: 644fb2b0f6bc845fe3eab14a0397d73ed3d824b57e040fa88f3ee4c9c9c4a9c6
Contents?: true
Size: 571 Bytes
Versions: 3
Compression:
Stored size: 571 Bytes
Contents
$p = $ExecutionContext.SessionState.Path $path = $p.GetUnresolvedProviderPathFromPSPath("<%= path %>") $index = <%= index %> $chunkSize = <%= chunk_size %> if (Test-Path $path -PathType Leaf) { $file = [System.IO.File]::OpenRead($path) $seekedTo = $file.Seek($index, [System.IO.SeekOrigin]::Begin) $chunk = New-Object byte[] $chunkSize $bytesRead = $file.Read($chunk, 0, $chunkSize) $bytes = [System.convert]::ToBase64String($chunk[0..$bytesRead]) Write-Host $bytes exit 0 } ElseIf (Test-Path $path -PathType Container) { exit 2 } exit 1
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
chef-winrm-fs-1.3.7 | lib/chef-winrm-fs/scripts/download.ps1.erb |
chef-winrm-fs-1.3.6 | lib/winrm-fs/scripts/download.ps1.erb |
winrm-fs-1.3.6 | lib/winrm-fs/scripts/download.ps1.erb |