Class: Palimpsest::Site

Inherits:
Object
  • Object
show all
Defined in:
lib/palimpsest/site.rb

Overview

Model site object used by Environment#site.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameString

Returns name for this site.

Returns:

  • (String)

    name for this site



14
15
16
# File 'lib/palimpsest/site.rb', line 14

def name
  @name
end

#pathObject

Returns the value of attribute path.



14
15
16
# File 'lib/palimpsest/site.rb', line 14

def path
  @path
end

#repoGrit::Repo

Returns grit repo for this site.

Returns:

  • (Grit::Repo)

    grit repo for this site



14
# File 'lib/palimpsest/site.rb', line 14

attr_accessor :name, :repo, :source, :path

#sourceString

Returns path to source code for this site.

Returns:

  • (String)

    path to source code for this site



14
# File 'lib/palimpsest/site.rb', line 14

attr_accessor :name, :repo, :source, :path