Sha256: f18599c7103dea5966ef99561fe5fe9f356e766a4ce1527f0b34b0d098b3b733

Contents?: true

Size: 491 Bytes

Versions: 7

Compression:

Stored size: 491 Bytes

Contents

$p = $ExecutionContext.SessionState.Path
$path = $p.GetUnresolvedProviderPathFromPSPath("<%= path %>")

if (Test-Path $path -PathType Leaf) {
  $cryptoProv = New-Object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider
  $file = [System.IO.File]::Open($path,
      [System.IO.Filemode]::Open, [System.IO.FileAccess]::Read)
  $md5 = ([System.BitConverter]::ToString($cryptoProv.ComputeHash($file)))
  $md5 = $md5.Replace("-","").ToLower()
  $file.Close()

  Write-Output $md5
}

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
winrm-fs-0.4.0 lib/winrm-fs/scripts/checksum.ps1.erb
winrm-fs-0.3.1 lib/winrm-fs/scripts/checksum.ps1.erb
winrm-fs-0.3.0 lib/winrm-fs/scripts/checksum.ps1.erb
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/winrm-fs-0.2.3/lib/winrm-fs/scripts/checksum.ps1.erb
winrm-fs-0.2.3 lib/winrm-fs/scripts/checksum.ps1.erb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/winrm-fs-0.2.2/lib/winrm-fs/scripts/checksum.ps1.erb
winrm-fs-0.2.2 lib/winrm-fs/scripts/checksum.ps1.erb