class Palimpsest::Site

Model site object used by {Environment#site}.

Attributes

name[RW]

@!attribute name

@return [String] name for this site

@!attribute repo

@return [Grit::Repo] grit repo for this site

@!attribute source

@return [String] path to source code for this site
path[RW]

@!attribute name

@return [String] name for this site

@!attribute repo

@return [Grit::Repo] grit repo for this site

@!attribute source

@return [String] path to source code for this site
repo[RW]

@!attribute name

@return [String] name for this site

@!attribute repo

@return [Grit::Repo] grit repo for this site

@!attribute source

@return [String] path to source code for this site
source[RW]

@!attribute name

@return [String] name for this site

@!attribute repo

@return [Grit::Repo] grit repo for this site

@!attribute source

@return [String] path to source code for this site

Public Class Methods

new(name: '', repo: nil, source: '') click to toggle source
# 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