class PgBundle::PathSource

The PathSource class defines a local Path Source eg. PathSource.new('/my/local/path')

Public Instance Methods

clean() click to toggle source
# File lib/pgbundle/path_source.rb, line 15
def clean
end
load(host, user, dest) click to toggle source
# 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