Skip to content

POSHOrigin:POSHFile

Brandon Olin edited this page Jan 5, 2016 · 2 revisions

Example resource that manages a file and it's contents.

Parameters

Name Type Required Description
Name string True Name of file to create
Ensure string False Denotes if resource should exist or not exist.
Path string True Path the file should exist in
Contents string False Contents of file
my_file.ps1
resource 'POSHOrigin:POSHFile' 'file01' @{
    name = 'file01.txt'
    ensure = 'Present'
    path = 'c:\'
    contents = 'this is some content'
}