diff --git a/guides/common/modules/proc_managing-puppet-modules-with-r10k.adoc b/guides/common/modules/proc_managing-puppet-modules-with-r10k.adoc index 4e06a7bc68a..8bed774a29a 100644 --- a/guides/common/modules/proc_managing-puppet-modules-with-r10k.adoc +++ b/guides/common/modules/proc_managing-puppet-modules-with-r10k.adoc @@ -7,7 +7,7 @@ It does not handle dependencies between Puppet modules. A _Puppetfile_ looks as follows: -[source,ruby] +[source, ruby] ---- forge "https://forge.puppet.com" diff --git a/guides/common/modules/ref_customizing-job-templates.adoc b/guides/common/modules/ref_customizing-job-templates.adoc index c4456799c7a..1d669666ce0 100644 --- a/guides/common/modules/ref_customizing-job-templates.adoc +++ b/guides/common/modules/ref_customizing-job-templates.adoc @@ -6,7 +6,7 @@ This way you can combine templates, or create more specific templates from the g The following template combines default templates to install and start the *nginx* service on clients: -[source, Ruby] +[source, ruby] ---- <%= render_template 'Package Action - SSH Default', :action => 'install', :package => 'nginx' %> <%= render_template 'Service Action - SSH Default', :action => 'start', :service_name => 'nginx' %> @@ -16,7 +16,7 @@ The above template specifies parameter values for the rendered template directly It is also possible to use the *input()* method to allow users to define input for the rendered template on job execution. For example, you can use the following syntax: -[source, Ruby] +[source, ruby] ---- <%= render_template 'Package Action - SSH Default', :action => 'install', :package => input("package") %> ---- diff --git a/guides/common/modules/ref_example-including-power-options-in-a-job-template.adoc b/guides/common/modules/ref_example-including-power-options-in-a-job-template.adoc index 5b984b900d1..9c6934c5119 100644 --- a/guides/common/modules/ref_example-including-power-options-in-a-job-template.adoc +++ b/guides/common/modules/ref_example-including-power-options-in-a-job-template.adoc @@ -6,7 +6,7 @@ This procedure prevents {Project} from interpreting the disconnect exception upo Create a new template as described in {ManagingHostsDocURL}setting-up-job-templates_managing-hosts[Setting up Job Templates], and specify the following string in the template editor: -[source, Ruby] +[source, ruby] ---- <%= render_template("Power Action - SSH Default", :action => "restart") %> ---- diff --git a/guides/common/modules/ref_example-restorecon-template.adoc b/guides/common/modules/ref_example-restorecon-template.adoc index 08bff0c25eb..b3c1bfc26a4 100644 --- a/guides/common/modules/ref_example-restorecon-template.adoc +++ b/guides/common/modules/ref_example-restorecon-template.adoc @@ -10,7 +10,7 @@ This example shows how to create a template called *Run Command - restorecon* th Select *Default* to make the template available to all organizations. Add the following text to the template editor: + -[source, Ruby] +[source, ruby] ---- restorecon -RvF <%= input("directory") %> ---- diff --git a/guides/common/modules/ref_rendering-a-restorecon-template.adoc b/guides/common/modules/ref_rendering-a-restorecon-template.adoc index f5f34febb2f..4748c7db108 100644 --- a/guides/common/modules/ref_rendering-a-restorecon-template.adoc +++ b/guides/common/modules/ref_rendering-a-restorecon-template.adoc @@ -6,7 +6,7 @@ This template does not require user input on job execution, it will restore the Create a new template as described in {ManagingHostsDocURL}setting-up-job-templates_managing-hosts[Setting up Job Templates], and specify the following string in the template editor: -[source, Ruby] +[source, ruby] ---- <%= render_template("Run Command - restorecon", :directory => "/home") %> ----