summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Pressland <mail@cpressland.io>2021-01-26 19:54:42 +0000
committerChris Pressland <mail@cpressland.io>2021-01-26 20:07:36 +0000
commitfb8dedb62d009c272a2fddef3df2a15a898de5f0 (patch)
tree7042f1c408defc2f2f5c0ed919eff3090db41286
parent83f861c0f0e44b240ab44e5860830e0a96741193 (diff)
downloadchef-fb8dedb62d009c272a2fddef3df2a15a898de5f0.tar.gz
Update systemd_unit.rb to make Cookstyle Compliant
Fixes `Style/BracesAroundHashParameters: Redundant curly braces around a hash parameter.` Signed-off-by: Chris Pressland <mail@cpressland.io>
-rw-r--r--lib/chef/resource/systemd_unit.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/systemd_unit.rb b/lib/chef/resource/systemd_unit.rb
index b028214441..f6384ac947 100644
--- a/lib/chef/resource/systemd_unit.rb
+++ b/lib/chef/resource/systemd_unit.rb
@@ -34,7 +34,7 @@ class Chef
```ruby
systemd_unit 'etcd.service' do
- content({Unit: {
+ content(Unit: {
Description: 'Etcd',
Documentation: ['https://coreos.com/etcd', 'man:etcd(1)'],
After: 'network.target',
@@ -46,7 +46,7 @@ class Chef
},
Install: {
WantedBy: 'multi-user.target',
- }})
+ })
action [:create, :enable]
end
```