diff options
author | Noah Kantrowitz <noah@coderanger.net> | 2016-04-05 15:41:49 -0400 |
---|---|---|
committer | Noah Kantrowitz <noah@coderanger.net> | 2016-04-05 15:41:49 -0400 |
commit | ea341043d8ad3f0852e0dfc8d8383704a4bc7623 (patch) | |
tree | 6106b5fc50dd8ce6a7e5ecc072fbcfaf85591f28 /lib/chef/provider/service | |
parent | 599b15c22a6a0c1f3125f901c075fb6d013f6307 (diff) | |
download | chef-ea341043d8ad3f0852e0dfc8d8383704a4bc7623.tar.gz |
Fix some nits. [ci skip]
Diffstat (limited to 'lib/chef/provider/service')
-rw-r--r-- | lib/chef/provider/service/redhat.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/provider/service/redhat.rb b/lib/chef/provider/service/redhat.rb index 4e17caf768..ef83ff6ea6 100644 --- a/lib/chef/provider/service/redhat.rb +++ b/lib/chef/provider/service/redhat.rb @@ -57,13 +57,13 @@ class Chef requirements.assert(:all_actions) do |a| chkconfig_file = "/sbin/chkconfig" a.assertion { ::File.exists? chkconfig_file } - a.failure_message Chef::Exceptions::Service, "#{chkconfig_file} dbleoes not exist!" + a.failure_message Chef::Exceptions::Service, "#{chkconfig_file} does not exist!" end requirements.assert(:enable) do |a| a.assertion { !@service_missing } a.failure_message Chef::Exceptions::Service, "#{new_resource}: Service is not known to chkconfig." - a.whyrun "Assuming service would be disabled. The init script is not presently installed." + a.whyrun "Assuming service would be enabled. The init script is not presently installed." end requirements.assert(:start, :reload, :restart) do |a| @@ -71,7 +71,7 @@ class Chef new_resource.init_command || custom_command_for_action?(action) || !@service_missing end a.failure_message Chef::Exceptions::Service, "#{new_resource}: No custom command for #{action} specified and unable to locate the init.d script!" - a.whyrun "Assuming service would be disabled. The init script is not presently installed." + a.whyrun "Assuming service would be enabled. The init script is not presently installed." end end |