Class: Palimpsest::Site
- Inherits:
-
Object
- Object
- Palimpsest::Site
- Defined in:
- lib/palimpsest/site.rb
Overview
Model site object used by Environment#site.
Instance Attribute Summary collapse
-
#name ⇒ String
Name for this site.
-
#path ⇒ Object
Returns the value of attribute path.
-
#repo ⇒ Grit::Repo
Grit repo for this site.
-
#source ⇒ String
Path to source code for this site.
Instance Method Summary collapse
-
#initialize(name: '', repo: nil, source: '') ⇒ Site
constructor
A new instance of Site.
Constructor Details
#initialize(name: '', repo: nil, source: '') ⇒ Site
Returns a new instance of Site.
16 17 18 19 20 21 |
# File 'lib/palimpsest/site.rb', line 16 def initialize name: '', repo: nil, source: '' self.name = name self.repo = repo self.source = source self.path = path end |
Instance Attribute Details
#name ⇒ String
Returns name for this site.
14 15 16 |
# File 'lib/palimpsest/site.rb', line 14 def name @name end |
#path ⇒ Object
Returns the value of attribute path.
14 15 16 |
# File 'lib/palimpsest/site.rb', line 14 def path @path end |
#repo ⇒ Grit::Repo
Returns grit repo for this site.
14 |
# File 'lib/palimpsest/site.rb', line 14 attr_accessor :name, :repo, :source, :path |
#source ⇒ String
Returns path to source code for this site.
14 |
# File 'lib/palimpsest/site.rb', line 14 attr_accessor :name, :repo, :source, :path |