diff --git a/code/staticpublisher/FilesystemPublisher.php b/code/staticpublisher/FilesystemPublisher.php index 5852bd54..bc818e7a 100644 --- a/code/staticpublisher/FilesystemPublisher.php +++ b/code/staticpublisher/FilesystemPublisher.php @@ -2,6 +2,11 @@ /** * Usage: Object::add_extension("SiteTree", "FilesystemPublisher('../static-folder/')") + * + * @see http://doc.silverstripe.com/doku.php?id=staticpublisher + * + * @package cms + * @subpackage publishers */ class FilesystemPublisher extends StaticPublisher { protected $destFolder; @@ -136,9 +141,6 @@ class FilesystemPublisher extends StaticPublisher { } if(self::$static_base_url) Director::setBaseURL(null); - - //Debug::show(array_keys($files)); - //Debug::show(array_keys($missingFiles)); $base = "../$this->destFolder"; foreach($files as $file) { diff --git a/code/staticpublisher/RsyncMultiHostPublisher.php b/code/staticpublisher/RsyncMultiHostPublisher.php index 2f7b2e51..e20b5842 100644 --- a/code/staticpublisher/RsyncMultiHostPublisher.php +++ b/code/staticpublisher/RsyncMultiHostPublisher.php @@ -3,6 +3,11 @@ /** * This static publisher can be used to deploy static content to multiple hosts, by generating the cache files locally and then rsyncing then to * each destination box. This can be used to set up a load-balanced collection of static servers. + * + * @see http://doc.silverstripe.com/doku.php?id=staticpublisher + * + * @package cms + * @subpackage publishers */ class RsyncMultiHostPublisher extends FilesystemPublisher { /** @@ -12,6 +17,9 @@ class RsyncMultiHostPublisher extends FilesystemPublisher { /** * Set the targets to publish to. + * If target is an scp-style remote path, no password is accepted - we assume key-based authentication to be set up on the application server + * initiating the publication. + * * @param $targets An array of targets to publish to. These can either be local file names, or scp-style targets, in the form "user@server:path" */ static function set_targets($targets) { diff --git a/code/staticpublisher/StaticPublisher.php b/code/staticpublisher/StaticPublisher.php index 1b251658..793d491b 100644 --- a/code/staticpublisher/StaticPublisher.php +++ b/code/staticpublisher/StaticPublisher.php @@ -1,5 +1,8 @@