]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/wordpress/libraries/wordpress.rb
Rubocop cleanups
[chef.git] / cookbooks / wordpress / libraries / wordpress.rb
index 8ebb1460c621dc953fae8e1d41462239dfa4e567..06a375fe931935f726dc5f336da44878abbbb537 100644 (file)
@@ -13,13 +13,13 @@ class Chef
 
     def self.current_plugin_version(name)
       if svn_cat("http://plugins.svn.wordpress.org/#{name}/trunk/readme.txt") =~ /Stable tag:\s*([^\s\r]*)[\s\r]*/
-        $1
+        Regexp.last_match[1]
       else
         "trunk"
       end
     end
 
-  private
+    private
 
     def self.core_version_check
       api_get("http://api.wordpress.org/core/version-check/1.6")