Output theme info

This commit is contained in:
Christian Mehlmauer
2013-12-07 20:51:30 +01:00
parent 4c4b363035
commit 2fd11cba15
6 changed files with 109 additions and 1 deletions

View File

@@ -3,16 +3,26 @@
require 'wp_theme/findable'
require 'wp_theme/versionable'
require 'wp_theme/vulnerable'
require 'wp_theme/info'
require 'wp_theme/output'
class WpTheme < WpItem
extend WpTheme::Findable
include WpTheme::Versionable
include WpTheme::Vulnerable
include WpTheme::Info
include WpTheme::Output
attr_writer :style_url
def allowed_options; super << :style_url end
def initialize(*args)
super(*args)
parse_style
end
# Sets the @uri
#
# @param [ URI ] target_base_uri The URI of the wordpress blog
@@ -28,6 +38,6 @@ class WpTheme < WpItem
@style_url = uri.merge('style.css').to_s
end
@style_url
end
end
end