1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-14 10:52:41 +01:00
phorge-phorge/src/applications/drydock/interface/filesystem/DrydockFilesystemInterface.php
James Rhodes dd01535ed6 Implement "Upload Artifact" build step
Summary: This implements a build step for uploading an artifact from a build machine to Phabricator.  It uses SFTP so that it will work on both UNIX and Windows build machines.

Test Plan: Ran an "Upload Artifact" build against a Windows machine (with FreeSSHD installed).  The artifact uploaded to Phabricator, appeared on the build view and the file contents could be viewed from Phabricator.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley

CC: Korvin, epriestley, aran

Maniphest Tasks: T1049

Differential Revision: https://secure.phabricator.com/D7582
2013-12-06 14:11:05 +11:00

24 lines
541 B
PHP

<?php
abstract class DrydockFilesystemInterface extends DrydockInterface {
final public function getInterfaceType() {
return 'filesystem';
}
/**
* Reads a file on the Drydock resource and returns the contents of the file.
*/
abstract public function readFile($path);
/**
* Reads a file on the Drydock resource and saves it as a PhabricatorFile.
*/
abstract public function saveFile($path, $name);
/**
* Writes a file to the Drydock resource.
*/
abstract public function writeFile($path, $data);
}