diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-08-12 11:14:17 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-08-16 18:41:25 -0700 |
commit | 43da5b5de2618290c09e5775063f7ec21ec5b667 (patch) | |
tree | 5327f70506c264a6f1545423fc383c2d2c76bf03 /lib/chef/cookbook_version.rb | |
parent | 8069ed78dc8ed361f81064bca4da4b63c72559a4 (diff) | |
download | chef-43da5b5de2618290c09e5775063f7ec21ec5b667.tar.gz |
fixes Style/OpMethod cop
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/cookbook_version.rb')
-rw-r--r-- | lib/chef/cookbook_version.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/cookbook_version.rb b/lib/chef/cookbook_version.rb index 63b39abdb7..bf9e755f3f 100644 --- a/lib/chef/cookbook_version.rb +++ b/lib/chef/cookbook_version.rb @@ -599,12 +599,12 @@ class Chef end end - def <=>(o) - raise Chef::Exceptions::CookbookVersionNameMismatch if self.name != o.name + def <=>(other) + raise Chef::Exceptions::CookbookVersionNameMismatch if self.name != other.name # FIXME: can we change the interface to the Metadata class such # that metadata.version returns a Chef::Version instance instead # of a string? - Chef::Version.new(self.version) <=> Chef::Version.new(o.version) + Chef::Version.new(self.version) <=> Chef::Version.new(other.version) end private |