docs/how_to/recipes.md in beaker-3.35.0 vs docs/how_to/recipes.md in beaker-3.36.0
- old
+ new
@@ -1,13 +1,20 @@
# What is This?
Patterns for best-use solutions to (not so) common problems
## How do i set persistent environment variables on a SUT, such as PATH?
+
+```ruby
host.add_env_var('PATH', '/opt/puppetlabs/bin:$PATH')
+```
## How do i run commands on a SUT as a non-root user?
-(warning) this should be abstracted into a beaker helper, or part of on(): BKR-168 - Beaker::DSL::Helpers needs "as" method READY FOR ENGINEERING
-###create the user, then su with --command:
+(warning) this should be abstracted into a beaker helper, or part of `on()`: BKR-168 - Beaker::DSL::Helpers needs "as" method READY FOR ENGINEERING
+
+Create the user, then `su` with `--command`:
+
+```ruby
on(host, puppet("resource user #{username} ensure=present managehome-true"))
on(host, "su #{username} --command '#{command}'")
+```
\ No newline at end of file