document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #
  2. # Export the module members - KUDOS to the chocolatey project for this efficent code
  3. #
  4.  
  5. #get the path of where the module is saved (if module is at c:\\myscripts\\module.psm1, then c:\\myscripts\\)
  6. $mypath = (Split-Path -parent $MyInvocation.MyCommand.Definition)
  7.  
  8. #find all the ps1 files in the subfolder functions
  9. Resolve-Path $mypath\\functions\\*.ps1 | % { . $_.ProviderPath }
  10.  
  11. #export as module members the functions we specify
  12. Export-ModuleMember -Function Get-BCryptSalt, Get-BCryptHash, Test-bCryptHash
  13.  
  14. #
  15. # Define any alias and export them - Kieran Jacobsen
  16. #
');