Class: PgBundle::PathSource

Inherits:
BaseSource show all
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

#path

Instance Method Summary collapse

Methods inherited from BaseSource

#initialize

Constructor Details

This class inherits a constructor from PgBundle::BaseSource

Instance Method Details

#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