mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-08 14:28:57 +02:00
[Nostromo] Add tests
This commit is contained in:
@@ -62,6 +62,17 @@ class Runtime implements RuntimeInterface
|
||||
*/
|
||||
protected $rollback = false;
|
||||
|
||||
/**
|
||||
* Generate the Release ID
|
||||
*
|
||||
* @return RuntimeInterface
|
||||
*/
|
||||
public function generateReleaseId()
|
||||
{
|
||||
$this->setReleaseId(date('YmdHis'));
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the Release ID
|
||||
*
|
||||
@@ -409,4 +420,14 @@ class Runtime implements RuntimeInterface
|
||||
|
||||
return $sshConfig;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a Temporal File name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTempFile()
|
||||
{
|
||||
return tempnam(sys_get_temp_dir(), 'mage');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user