summaryrefslogtreecommitdiff
path: root/doc/forum/Executing_a_property_within_a_explicit_CWD/comment_3_60154b98f64306e627a417905e2bef73._comment
diff options
context:
space:
mode:
authorJoey Hess2018-01-08 18:56:55 -0400
committerJoey Hess2018-01-08 18:56:55 -0400
commit4148afa53fc664e2ca9261dd853f9c138949f379 (patch)
tree62f13ed699b31c8779a6baae1475d26fb10c312e /doc/forum/Executing_a_property_within_a_explicit_CWD/comment_3_60154b98f64306e627a417905e2bef73._comment
parentb422c7be0fb444960589ed494dd1133fa1c76bd2 (diff)
response
Diffstat (limited to 'doc/forum/Executing_a_property_within_a_explicit_CWD/comment_3_60154b98f64306e627a417905e2bef73._comment')
-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
+"""]]