Sha256: 2be11c59179484d54727de4edd5fb5030b72e048c1781374a856aeb096aaeb42

Contents?: true

Size: 489 Bytes

Versions: 5

Compression:

Stored size: 489 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-Host $md5
}

Version data entries

5 entries across 4 versions & 2 rubygems

Version Path
winrm-fs-0.2.1 lib/winrm-fs/scripts/checksum.ps1.erb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/winrm-fs-0.1.0/lib/winrm-fs/scripts/checksum.ps1.erb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/winrm-fs-0.2.0/lib/winrm-fs/scripts/checksum.ps1.erb
winrm-fs-0.2.0 lib/winrm-fs/scripts/checksum.ps1.erb
winrm-fs-0.1.0 lib/winrm-fs/scripts/checksum.ps1.erb