From f6d442acb0d0e567849d4185ca4865fc8771274f Mon Sep 17 00:00:00 2001 From: Roderik van der Veer Date: Sat, 8 Feb 2014 11:00:28 +0100 Subject: [PATCH] Fix foodcritic error --- providers/package.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/providers/package.rb b/providers/package.rb index 6ed2be2..ead05f5 100644 --- a/providers/package.rb +++ b/providers/package.rb @@ -3,6 +3,7 @@ command "npm -g install #{new_resource.name}" not_if "npm -g ls | grep '#{new_resource.name}'" end + new_resource.updated_by_last_action(true) end action :install_local do @@ -14,6 +15,7 @@ command "npm install #{pkg_id}" not_if "cd #{path} && npm ls | grep '#{pkg_id}'" end + new_resource.updated_by_last_action(true) end action :install_from_json do @@ -23,6 +25,7 @@ cwd path command cmd end + new_resource.updated_by_last_action(true) end action :uninstall do @@ -30,6 +33,7 @@ command "npm -g uninstall #{new_resource.name}" only_if "npm -g ls | grep '#{new_resource.name}'" end + new_resource.updated_by_last_action(true) end action :uninstall_local do @@ -41,4 +45,5 @@ command "npm uninstall #{pkg_id}" only_if "cd #{path} && npm | grep '#{pkg_id}'" end + new_resource.updated_by_last_action(true) end