Last active
August 29, 2015 14:17
-
-
Save stathy/1b03a217f0002ef2c29f to your computer and use it in GitHub Desktop.
Example representation of Chef resource converted from powershell_script resource.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
powershell_script "Set ExecutionPolicy to Unrestricted" do | |
code %q(Set-ExecutionPolicy Unrestricted -force) | |
end | |
## CONVERT TO | |
powershell_execution_policy | |
restricted false | |
end | |
powershell_script "Set ExecutionPolicy to Restricted" do | |
code "Set-ExecutionPolicy Restricted -force" | |
end | |
### Convert to | |
powershell_execution_policy | |
restricted true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Set execution policy
Explicit powershell
CONVERT TO
Implicit powershell as Chef resource
Explicit powershell
powershell_script "Set ExecutionPolicy to Restricted" do
code "Set-ExecutionPolicy Restricted -force"
end
CONVERT TO
Implicit powershell as Chef resource