Class: Sitepress::Compiler::Files
- Includes:
- FileUtils
- Defined in:
- lib/sitepress/compiler.rb
Overview
Compile all resources from a Sitepress site into static pages.
Instance Attribute Summary collapse
-
#root_path ⇒ Object
readonly
Returns the value of attribute root_path.
Attributes inherited from Abstract
#fail_on_error, #failed, #site, #succeeded
Instance Method Summary collapse
-
#initialize(*args, root_path:, **kwargs, &block) ⇒ Files
constructor
A new instance of Files.
Methods inherited from Abstract
Constructor Details
#initialize(*args, root_path:, **kwargs, &block) ⇒ Files
Returns a new instance of Files.
79 80 81 82 |
# File 'lib/sitepress/compiler.rb', line 79 def initialize(*args, root_path:, **kwargs, &block) super(*args, **kwargs, &block) @root_path = Pathname.new(root_path) end |
Instance Attribute Details
#root_path ⇒ Object (readonly)
Returns the value of attribute root_path.
77 78 79 |
# File 'lib/sitepress/compiler.rb', line 77 def root_path @root_path end |