Skip to content

Commit

Permalink
Fix foodcritic error
Browse files Browse the repository at this point in the history
  • Loading branch information
Roderik van der Veer committed Feb 8, 2014
1 parent c007444 commit f6d442a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions providers/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -23,13 +25,15 @@
cwd path
command cmd
end
new_resource.updated_by_last_action(true)
end

action :uninstall do
execute "uninstall NPM package #{new_resource.name}" do
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
Expand All @@ -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

0 comments on commit f6d442a

Please sign in to comment.