diff options
Diffstat (limited to 'lib/chef/resource/alternatives.rb')
-rw-r--r-- | lib/chef/resource/alternatives.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/chef/resource/alternatives.rb b/lib/chef/resource/alternatives.rb index 91e778b643..59939543ab 100644 --- a/lib/chef/resource/alternatives.rb +++ b/lib/chef/resource/alternatives.rb @@ -122,7 +122,7 @@ class Chef end end - action :install, description: "Install an alternative on the system including symlinks" do + action :install, description: "Install an alternative on the system including symlinks." do if path_priority != new_resource.priority converge_by("adding alternative #{new_resource.link} #{new_resource.link_name} #{new_resource.path} #{new_resource.priority}") do output = shell_out(alternatives_cmd, "--install", new_resource.link, new_resource.link_name, new_resource.path, new_resource.priority) @@ -133,7 +133,7 @@ class Chef end end - action :set, description: "Set the symlink for an alternative" do + action :set, description: "Set the symlink for an alternative." do if current_path != new_resource.path converge_by("setting alternative #{new_resource.link_name} #{new_resource.path}") do output = shell_out(alternatives_cmd, "--set", new_resource.link_name, new_resource.path) @@ -144,7 +144,7 @@ class Chef end end - action :remove, description: "Remove an alternative and all associated links" do + action :remove, description: "Remove an alternative and all associated links." do if path_exists? converge_by("removing alternative #{new_resource.link_name} #{new_resource.path}") do shell_out(alternatives_cmd, "--remove", new_resource.link_name, new_resource.path) @@ -152,13 +152,13 @@ class Chef end end - action :auto, description: "Set an alternative up in automatic mode with the highest priority automatically selected" do + action :auto, description: "Set an alternative up in automatic mode with the highest priority automatically selected." do converge_by("setting auto alternative #{new_resource.link_name}") do shell_out(alternatives_cmd, "--auto", new_resource.link_name) end end - action :refresh, description: "Refresh alternatives" do + action :refresh, description: "Refresh alternatives." do converge_by("refreshing alternative #{new_resource.link_name}") do shell_out(alternatives_cmd, "--refresh", new_resource.link_name) end |