OP\RemoteAssetTask
Downloads files from a remote server.
- The task will download *new* files
- Copyright: (c) 2014, Otago Polytechnic
Synopsis
class RemoteAssetTask
extends BuildTask
{
- // members
- protected string $title = "Download Remote SilverStripe files";
- protected string $description = "Retrieves files from a remote SilverStripe instance.";
- // methods
- public void run()
- public boolean AuthenticateUser()
- public void RemoteAssetSync()
- public void log()
Hierarchy
Extends
- SilverStripe\Dev\BuildTask
Members
protected
- $description
- $title
Methods
public
- AuthenticateUser() — Set the current user to the user specified in yml
- RemoteAssetSync() — Downloads the files locally, with no JavaScript and ajax
- log() — log any information to console while running in cli mode. it wil also log information to a logger interface.
- run() — will ask the target server to return the file list and the data object list