summaryrefslogtreecommitdiff
path: root/lib/chef/resource/habitat_config.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/habitat_config.rb')
-rw-r--r--lib/chef/resource/habitat_config.rb24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/chef/resource/habitat_config.rb b/lib/chef/resource/habitat_config.rb
index 9f4ac89370..0fb3009aa0 100644
--- a/lib/chef/resource/habitat_config.rb
+++ b/lib/chef/resource/habitat_config.rb
@@ -27,18 +27,18 @@ class Chef
description "Use the **habitat_config** resource to apply a configuration to a Chef Habitat service."
introduced "17.3"
examples <<~DOC
- **Configure your nginx defaults**
-
- ```ruby
- habitat_config 'nginx.default' do
- config({
- worker_count: 2,
- http: {
- keepalive_timeout: 120
- }
- })
- end
- ```
+ **Configure your nginx defaults**
+
+ ```ruby
+ habitat_config 'nginx.default' do
+ config({
+ worker_count: 2,
+ http: {
+ keepalive_timeout: 120
+ }
+ })
+ end
+ ```
DOC
property :config, Mash, required: true, coerce: proc { |m| m.is_a?(Hash) ? Mash.new(m) : m },