summaryrefslogtreecommitdiff
path: root/doc/forum/Executing_a_property_within_a_explicit_CWD
diff options
context:
space:
mode:
Diffstat (limited to 'doc/forum/Executing_a_property_within_a_explicit_CWD')
-rw-r--r--doc/forum/Executing_a_property_within_a_explicit_CWD/comment_3_60154b98f64306e627a417905e2bef73._comment16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/forum/Executing_a_property_within_a_explicit_CWD/comment_3_60154b98f64306e627a417905e2bef73._comment b/doc/forum/Executing_a_property_within_a_explicit_CWD/comment_3_60154b98f64306e627a417905e2bef73._comment
new file mode 100644
index 00000000..e24bc461
--- /dev/null
+++ b/doc/forum/Executing_a_property_within_a_explicit_CWD/comment_3_60154b98f64306e627a417905e2bef73._comment
@@ -0,0 +1,16 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 3"""
+ date="2018-01-08T22:52:51Z"
+ content="""
+That is what I was suggesting yes.
+
+Another way to do it is using `cmdProperty'`, for example:
+
+ import Utility.Process
+ import Propellor.Property.Cmd
+
+ foo = cmdProperty' "apt-get" ["-y", "install", "gitlab"]
+ (\p -> p { cwd = Just "/tmp" })
+ `assume` MadeChange
+"""]]