Fix documented ruby code blocks formatting

This commit is contained in:
Thibault Jouan
2015-04-01 15:10:07 +00:00
parent bf760a2c62
commit cf825de367

View File

@@ -162,6 +162,7 @@ Templates
In `templates/freebsd/jail.conf.erb`:
```ruby
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.clean;
@@ -190,6 +191,7 @@ Templates
conf = template 'freebsd/jail.conf', if: INTERFACE, jails: JAILS
file_write_once '/etc/jail.conf', conf
end
```
Macros
@@ -225,6 +227,7 @@ Sample recipe
Based on the previous template example (FreeBSD jails.conf
template):
```ruby
require 'producer/stdlib'
JAILS_ROOT = '/var/jails'.freeze
@@ -318,6 +321,7 @@ template):
conf = template 'freebsd/jail.conf', if: INTERFACE, jails: JAILS
file_write_once '/etc/jail.conf', conf
end
```
Similar or related code and tools