Class: Sitepress::Project
- Inherits:
-
Object
- Object
- Sitepress::Project
- Defined in:
- lib/sitepress/project.rb
Overview
Configures a site server, compiler, etc from a single configuration file. Useful for static sites or anything that’s running outside of a framework like Rails.
Constant Summary collapse
- DEFAULT_CONFIG_FILE =
Default path of project configuration file.
"site.rb".freeze
Instance Attribute Summary collapse
-
#site ⇒ Object
readonly
Returns the value of attribute site.
Instance Method Summary collapse
- #compiler ⇒ Object
-
#initialize(config_file: DEFAULT_CONFIG_FILE) ⇒ Project
constructor
A new instance of Project.
- #server ⇒ Object
Constructor Details
#initialize(config_file: DEFAULT_CONFIG_FILE) ⇒ Project
Returns a new instance of Project.
14 15 16 |
# File 'lib/sitepress/project.rb', line 14 def initialize(config_file: DEFAULT_CONFIG_FILE) @config_file = config_file end |
Instance Attribute Details
#site ⇒ Object (readonly)
Returns the value of attribute site.
12 13 14 |
# File 'lib/sitepress/project.rb', line 12 def site @site end |