Class: Nanoc::Int::SiteLoader
- Inherits:
-
Object
- Object
- Nanoc::Int::SiteLoader
- Defined in:
- lib/nanoc/base/repos/site_loader.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.cwd_is_nanoc_site? ⇒ Boolean
18 19 20 |
# File 'lib/nanoc/base/repos/site_loader.rb', line 18 def self.cwd_is_nanoc_site? Nanoc::Int::ConfigLoader.cwd_is_nanoc_site? end |
Instance Method Details
#new_empty ⇒ Object
5 6 7 |
# File 'lib/nanoc/base/repos/site_loader.rb', line 5 def new_empty site_from_config(Nanoc::Int::Configuration.new.with_defaults) end |
#new_from_cwd ⇒ Object
13 14 15 |
# File 'lib/nanoc/base/repos/site_loader.rb', line 13 def new_from_cwd site_from_config(Nanoc::Int::ConfigLoader.new.new_from_cwd) end |
#new_with_config(hash) ⇒ Object
9 10 11 |
# File 'lib/nanoc/base/repos/site_loader.rb', line 9 def new_with_config(hash) site_from_config(Nanoc::Int::Configuration.new(hash: hash).with_defaults) end |