-require 'chef/mixin/command'
+require "chef/mixin/command"
class Chef
module Wordpress
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")