Class: PgBundle::PathSource
- Inherits:
-
BaseSource
- Object
- BaseSource
- PgBundle::PathSource
- Defined in:
- lib/pgbundle/path_source.rb
Overview
The PathSource class defines a local Path Source eg. PathSource.new(‘/my/local/path’)
Instance Attribute Summary
Attributes inherited from BaseSource
Instance Method Summary collapse
Methods inherited from BaseSource
Constructor Details
This class inherits a constructor from PgBundle::BaseSource
Instance Method Details
#clean ⇒ Object
15 16 |
# File 'lib/pgbundle/path_source.rb', line 15 def clean end |
#load(host, user, dest) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/pgbundle/path_source.rb', line 7 def load(host, user, dest) if host == 'localhost' copy_local(path, dest) else copy_to_remote(host, user, path, dest) end end |