diff options
author | John Bellone <john.bellone.jr@gmail.com> | 2015-10-23 17:00:53 -0400 |
---|---|---|
committer | John Bellone <john.bellone.jr@gmail.com> | 2015-10-23 17:00:53 -0400 |
commit | 2c429ecb73d857fbbdb74ce7cba9e44862868ca0 (patch) | |
tree | d5468e3bf9a00b3ab1fb1a62ab0dd592a759797e /lib/chef/provider | |
parent | 8bf1304da739d4be94edb101ad9e46c96b1d4ccd (diff) | |
download | chef-2c429ecb73d857fbbdb74ce7cba9e44862868ca0.tar.gz |
package/solaris: Adds alias method for upgrade_package.
This follows the same convention that the [AIX package provider](https://github.com/johnbellone/chef/blob/master/lib/chef/provider/package/aix.rb#L122) has done and adds an alias_method.
Diffstat (limited to 'lib/chef/provider')
-rw-r--r-- | lib/chef/provider/package/solaris.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/provider/package/solaris.rb b/lib/chef/provider/package/solaris.rb index e62f37d27b..c0d2beec36 100644 --- a/lib/chef/provider/package/solaris.rb +++ b/lib/chef/provider/package/solaris.rb @@ -125,6 +125,8 @@ class Chef end end + alias_method :upgrade_package, :install_package + def remove_package(name, version) if @new_resource.options.nil? shell_out_with_timeout!( "pkgrm -n #{name}" ) |