summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2019-11-08 15:38:35 -0800
committerTim Smith <tsmith84@gmail.com>2019-11-08 15:45:13 -0800
commit6475fbc562e4a53ab0d41667b7d6de154b7be37a (patch)
tree0718d158e912539e4b2873320217e135713934b2
parent52b0cbdd5b32404ad38cb531bcddfc2246f31877 (diff)
downloadchef-6475fbc562e4a53ab0d41667b7d6de154b7be37a.tar.gz
Better describe the example resource usage
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--kitchen-tests/cookbooks/end_to_end/recipes/default.rb2
-rw-r--r--lib/chef/resource/chef_sleep.rb3
2 files changed, 2 insertions, 3 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/default.rb b/kitchen-tests/cookbooks/end_to_end/recipes/default.rb
index f6639f2dd1..f49cccd9a5 100644
--- a/kitchen-tests/cookbooks/end_to_end/recipes/default.rb
+++ b/kitchen-tests/cookbooks/end_to_end/recipes/default.rb
@@ -9,7 +9,7 @@ hostname "chef-bk-ci.chef.io"
apt_update
-chef_sleep '2'
+chef_sleep "2"
timezone "UTC"
diff --git a/lib/chef/resource/chef_sleep.rb b/lib/chef/resource/chef_sleep.rb
index 92ecf97039..07ab99d4da 100644
--- a/lib/chef/resource/chef_sleep.rb
+++ b/lib/chef/resource/chef_sleep.rb
@@ -33,7 +33,7 @@ class Chef
chef_sleep '10'
```
- Sleep for 10 seconds with a friendly resource name for logging
+ Sleep for 10 seconds with a descriptive resource name for logging
```ruby
chef_sleep 'wait for the service to start' do
seconds 10
@@ -55,7 +55,6 @@ class Chef
```
DOC
-
property :seconds, [String, Integer],
description: "The number of seconds to sleep.",
coerce: proc { |s| Integer(s) },