Method: Chef::Util::Powershell::PSCredential#to_psobject

Defined in:
lib/chef/util/powershell/ps_credential.rb

#to_psobjectObject Also known as: to_s, to_text



30
31
32
# File 'lib/chef/util/powershell/ps_credential.rb', line 30

def to_psobject
  "New-Object System.Management.Automation.PSCredential('#{@username}',('#{encrypt(@password)}' | ConvertTo-SecureString))"
end