Class: Marko::Storage

Inherits:
Object
  • Object
show all
Extended by:
Pluggable
Defined in:
lib/marko/storage.rb

Overview

The base class that represents sources repository

Direct Known Subclasses

Markup::Storage

Instance Method Summary collapse

Methods included from Pluggable

plug

Instance Method Details

#artifactArtifact

Returns artifact settings.

Returns:



30
31
32
# File 'lib/marko/storage.rb', line 30

def artifact
  fail "the abstract method must be overriden"
end

#content(source) ⇒ String

Returns content of :source.

Parameters:

  • source (Striing)

    source to retrieve content

Returns:

  • (String)

    content of :source



25
26
27
# File 'lib/marko/storage.rb', line 25

def content(source)
  fail "the abstract method must be overriden"
end

#punch(repository) ⇒ Object

create a new repository

Parameters:

  • repository (String)

    the name for the repository



14
15
16
# File 'lib/marko/storage.rb', line 14

def punch(repository)
  fail "the abstract method must be overriden"
end

#sourcesObject



19
20
21
# File 'lib/marko/storage.rb', line 19

def sources
  fail "the abstract method must be overriden"
end