Class: PgBundle::BaseSource

Inherits:
Object
  • Object
show all
Defined in:
lib/pgbundle/base_source.rb

Overview

The BaseSource class defines an Extension source like PathSource or GithubSource it defines how to get the code and run make install on a given host (e.g. database server)

Direct Known Subclasses

GitSource, PathSource, PgxnSource

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ BaseSource

Returns a new instance of BaseSource.



8
9
10
# File 'lib/pgbundle/base_source.rb', line 8

def initialize(path)
  @path = path
end

Instance Attribute Details

#pathObject

Returns the value of attribute path.



6
7
8
# File 'lib/pgbundle/base_source.rb', line 6

def path
  @path
end

Instance Method Details

#cleanObject



16
17
18
# File 'lib/pgbundle/base_source.rb', line 16

def clean
  fail NotImplementedError
end

#load(host, user, dest) ⇒ Object



12
13
14
# File 'lib/pgbundle/base_source.rb', line 12

def load(host, user, dest)
  fail NotImplementedError
end