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