[Nostromo] Add tests

This commit is contained in:
Andrés Montañez
2017-01-01 01:28:58 -03:00
parent 74c60f55ef
commit 196f84ceb1
16 changed files with 1957 additions and 17 deletions
+21
View File
@@ -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');
}
}