Class: Jekyll::RemoteTheme::Munger
- Inherits:
-
Object
- Object
- Jekyll::RemoteTheme::Munger
- Extended by:
- Forwardable
- Defined in:
- lib/jekyll-remote-theme/munger.rb
Instance Attribute Summary collapse
-
#site ⇒ Object
readonly
Returns the value of attribute site.
Instance Method Summary collapse
-
#initialize(site) ⇒ Munger
constructor
A new instance of Munger.
- #munge! ⇒ Object
Constructor Details
#initialize(site) ⇒ Munger
Returns a new instance of Munger.
10 11 12 |
# File 'lib/jekyll-remote-theme/munger.rb', line 10 def initialize(site) @site = site end |
Instance Attribute Details
#site ⇒ Object (readonly)
Returns the value of attribute site.
8 9 10 |
# File 'lib/jekyll-remote-theme/munger.rb', line 8 def site @site end |
Instance Method Details
#munge! ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/jekyll-remote-theme/munger.rb', line 14 def munge! return unless raw_theme unless theme.valid? Jekyll.logger.error LOG_KEY, "#{raw_theme.inspect} is not a valid remote theme" return end Jekyll.logger.info LOG_KEY, "Using theme #{theme.name_with_owner}" return theme if munged? downloader.run configure_theme enqueue_theme_cleanup theme end |