Class: Adva::Static::Import
- Inherits:
-
Object
- Object
- Adva::Static::Import
- Defined in:
- lib/adva/static/import.rb,
lib/adva/static/import/model.rb,
lib/adva/static/import/format.rb,
lib/adva/static/import/source.rb,
lib/adva/static/import/request.rb,
lib/adva/static/import/model/base.rb,
lib/adva/static/import/model/blog.rb,
lib/adva/static/import/model/page.rb,
lib/adva/static/import/model/post.rb,
lib/adva/static/import/model/site.rb,
lib/adva/static/import/source/base.rb,
lib/adva/static/import/source/blog.rb,
lib/adva/static/import/source/page.rb,
lib/adva/static/import/source/path.rb,
lib/adva/static/import/source/post.rb,
lib/adva/static/import/source/site.rb,
lib/adva/static/import/model/section.rb,
lib/adva/static/import/source/section.rb
Defined Under Namespace
Modules: Format, Model, Source Classes: Request
Instance Attribute Summary collapse
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Instance Method Summary collapse
- #import(path) ⇒ Object
-
#initialize(options = {}) ⇒ Import
constructor
A new instance of Import.
- #request_for(path) ⇒ Object
- #run ⇒ Object
Constructor Details
Instance Attribute Details
#root ⇒ Object (readonly)
Returns the value of attribute root.
9 10 11 |
# File 'lib/adva/static/import.rb', line 9 def root @root end |
Instance Method Details
#import(path) ⇒ Object
22 23 24 25 |
# File 'lib/adva/static/import.rb', line 22 def import(path) model = recognize(path) model.update! if model end |