Class: Sitepress::Compiler::Files

Inherits:
Abstract
  • Object
show all
Includes:
FileUtils
Defined in:
lib/sitepress/compiler.rb

Overview

Compile all resources from a Sitepress site into static pages.

Instance Attribute Summary collapse

Attributes inherited from Abstract

#fail_on_error, #failed, #site, #succeeded

Instance Method Summary collapse

Methods inherited from Abstract

#compile

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_pathObject (readonly)

Returns the value of attribute root_path.



77
78
79
# File 'lib/sitepress/compiler.rb', line 77

def root_path
  @root_path
end