summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-06-13 11:26:39 -0700
committerTim Smith <tsmith@chef.io>2018-06-13 11:26:39 -0700
commitf54f8df39648f362a4f6bb7d4760ed007f2e9f43 (patch)
tree31bacd28a8f248e21c7a5e27c09e508774224b6c
parenta87f3922e90983bceaaa22f705cb6ee2bab235e4 (diff)
downloadchef-f54f8df39648f362a4f6bb7d4760ed007f2e9f43.tar.gz
Minor fixes from PR review
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/ifconfig.rb2
-rw-r--r--lib/chef/resource/launchd.rb4
-rw-r--r--lib/chef/resource/log.rb2
-rw-r--r--lib/chef/resource/mdadm.rb4
4 files changed, 6 insertions, 6 deletions
diff --git a/lib/chef/resource/ifconfig.rb b/lib/chef/resource/ifconfig.rb
index 386a655c91..84ee249ec4 100644
--- a/lib/chef/resource/ifconfig.rb
+++ b/lib/chef/resource/ifconfig.rb
@@ -47,7 +47,7 @@ class Chef
property :family, String,
default: "inet", introduced: "14.0",
- description: "Networking family option for Debian-based systems; for example: inet or inet6."
+ description: "Networking family option for Debian-based systems. For example: inet or inet6."
property :inet_addr, String,
description: "The Internet host address for the network interface."
diff --git a/lib/chef/resource/launchd.rb b/lib/chef/resource/launchd.rb
index 530820c82d..df01675de1 100644
--- a/lib/chef/resource/launchd.rb
+++ b/lib/chef/resource/launchd.rb
@@ -74,7 +74,7 @@ class Chef
# { "Hour"=>0, "Weekday"=>"6-7"}
# will not just run on midnight of Sat and Sun, rather it will run _every_ midnight.
property :start_calendar_interval, [Hash, Array],
- description: "A Hash (similar to crontab) that defines the calendar frequency at which a job is started.",
+ description: "A Hash (similar to crontab) that defines the calendar frequency at which a job is started or an Array.",
coerce: proc { |type|
# Coerce into an array of hashes to make validation easier
array = if type.is_a?(Array)
@@ -246,7 +246,7 @@ class Chef
description: "An array of paths which, if any are modified, will cause a job to be started."
property :working_directory, String,
- description: "chdir to this directory, and then run the job."
+ description: "Chdir to this directory, and then run the job."
end
end
end
diff --git a/lib/chef/resource/log.rb b/lib/chef/resource/log.rb
index 0f0f0df082..b97b5c9e66 100644
--- a/lib/chef/resource/log.rb
+++ b/lib/chef/resource/log.rb
@@ -43,7 +43,7 @@ class Chef
property :level, Symbol,
equal_to: [ :debug, :info, :warn, :error, :fatal ], default: :info,
- description: "The level of logging that is to be displayed by the Chef Client."
+ description: "The logging level to display this message at."
allowed_actions :write
default_action :write
diff --git a/lib/chef/resource/mdadm.rb b/lib/chef/resource/mdadm.rb
index aa36311e2a..3fc5b7c338 100644
--- a/lib/chef/resource/mdadm.rb
+++ b/lib/chef/resource/mdadm.rb
@@ -38,7 +38,7 @@ class Chef
property :devices, Array,
default: lazy { [] },
- description: "A comma-separated list of devices to be part of a RAID array"
+ description: "The devices to be part of a RAID array."
property :exists, [ TrueClass, FalseClass ],
default: false,
@@ -50,7 +50,7 @@ class Chef
property :metadata, String,
default: "0.90",
- description: "The superblock type for RAID metadata"
+ description: "The superblock type for RAID metadata."
property :bitmap, String,
description: "The path to a file in which a write-intent bitmap is stored."