summaryrefslogtreecommitdiff
path: root/lib/chef/provider
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider')
-rw-r--r--lib/chef/provider/cron.rb4
-rw-r--r--lib/chef/provider/directory.rb4
-rw-r--r--lib/chef/provider/ifconfig.rb8
-rw-r--r--lib/chef/provider/package.rb8
4 files changed, 12 insertions, 12 deletions
diff --git a/lib/chef/provider/cron.rb b/lib/chef/provider/cron.rb
index 694f7ba4b8..29ecd4dd2a 100644
--- a/lib/chef/provider/cron.rb
+++ b/lib/chef/provider/cron.rb
@@ -92,7 +92,7 @@ class Chef
end
end
- action :create do
+ action :create, description: "Create an entry in a cron table file (crontab). If an entry already exists (but does not match), update that entry to match." do
crontab = ""
newcron = ""
cron_found = false
@@ -149,7 +149,7 @@ class Chef
end
end
- action :delete do
+ action :delete, description: "Delete an entry from a cron table file (crontab)." do
if @cron_exists
crontab = ""
cron_found = false
diff --git a/lib/chef/provider/directory.rb b/lib/chef/provider/directory.rb
index 6a20556ccd..3e4107980c 100644
--- a/lib/chef/provider/directory.rb
+++ b/lib/chef/provider/directory.rb
@@ -121,7 +121,7 @@ class Chef
end
end
- action :create do
+ action :create, description: "Create a directory. If a directory already exists (but does not match), update that directory to match." do
unless ::File.exist?(new_resource.path)
converge_by("create new directory #{new_resource.path}") do
if new_resource.recursive == true
@@ -137,7 +137,7 @@ class Chef
load_resource_attributes_from_file(new_resource) unless Chef::Config[:why_run]
end
- action :delete do
+ action :delete, description: "Delete a directory." do
if ::File.exist?(new_resource.path)
converge_by("delete existing directory #{new_resource.path}") do
if new_resource.recursive == true
diff --git a/lib/chef/provider/ifconfig.rb b/lib/chef/provider/ifconfig.rb
index 69d95b260c..63aa126c2e 100644
--- a/lib/chef/provider/ifconfig.rb
+++ b/lib/chef/provider/ifconfig.rb
@@ -168,7 +168,7 @@ class Chef
end
end
- action :add do
+ action :add, description: "Run ifconfig to configure a network interface and (on some platforms) write a configuration file for that network interface." do
# check to see if load_current_resource found interface in ifconfig
unless current_resource.inet_addr
unless new_resource.device == loopback_device
@@ -183,7 +183,7 @@ class Chef
generate_config
end
- action :enable do
+ action :enable, description: "Run ifconfig to enable a network interface." do
# check to see if load_current_resource found ifconfig
# enables, but does not manage config files
return if current_resource.inet_addr
@@ -196,7 +196,7 @@ class Chef
end
end
- action :delete do
+ action :delete, description: "Run ifconfig to disable a network interface and (on some platforms) delete that network interface’s configuration file." do
# check to see if load_current_resource found the interface
if current_resource.device
command = delete_command
@@ -210,7 +210,7 @@ class Chef
delete_config
end
- action :disable do
+ action :disable, description: "Run ifconfig to disable a network interface." do
# check to see if load_current_resource found the interface
# disables, but leaves config files in place.
if current_resource.device
diff --git a/lib/chef/provider/package.rb b/lib/chef/provider/package.rb
index 82d7ed00cf..a1cb4ff1b4 100644
--- a/lib/chef/provider/package.rb
+++ b/lib/chef/provider/package.rb
@@ -107,7 +107,7 @@ class Chef
end
end
- action :install do
+ action :install, description: "Install a package. If a version is specified, install the specified version of the package." do
unless target_version_array.any?
logger.debug("#{new_resource} is already installed - nothing to do")
return
@@ -136,7 +136,7 @@ class Chef
private :install_description
- action :upgrade do
+ action :upgrade, description: "Install a package and/or ensure that a package is the latest version." do
unless target_version_array.any?
logger.debug("#{new_resource} no versions to upgrade - nothing to do")
return
@@ -167,7 +167,7 @@ class Chef
private :upgrade_description
- action :remove do
+ action :remove, description: "Remove a package." do
if removing_package?
description = new_resource.version ? "version #{new_resource.version} of " : ""
converge_by("remove #{description}package #{current_resource.package_name}") do
@@ -202,7 +202,7 @@ class Chef
end
end
- action :purge do
+ action :purge, description: "Purge a package. This action typically removes the configuration files as well as the package." do
if removing_package?
description = new_resource.version ? "version #{new_resource.version} of" : ""
converge_by("purge #{description} package #{current_resource.package_name}") do