Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added 'brew upgrade' and changed 'run_command' to 'get_response_from_…

…command' to control return value
  • Loading branch information...
commit b2439bd875521d50233b37da117ee06e4f9e6c57 1 parent f0022c5
Christopher Brown authored jtimberman committed
Showing with 2 additions and 6 deletions.
  1. +2 −6 libraries/homebrew_package.rb
View
8 libraries/homebrew_package.rb
@@ -20,10 +20,8 @@ def install_package(name, version)
brew('install', @new_resource.options, name)
end
- # Homebrew doesn't really have a notion of upgrading packages, just
- # install the latest version?
def upgrade_package(name, version)
- install_package(name, version)
+ brew('upgrade', name)
end
def remove_package(name, version)
@@ -38,9 +36,7 @@ def purge_package(name, version)
protected
def brew(*args)
- run_command_with_systems_locale(
- :command => "brew #{args.join(' ')}"
- )
+ get_response_from_command("brew #{args.join(' ')}")
end
def current_installed_version
Please sign in to comment.
Something went wrong with that request. Please try again.