mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-28 17:52:43 +01:00
6a0eb9d84b
Summary: Ref T9253. Provide a meaningful command interface for Almanac hosts. Test Plan: Configued and leased a real host (`sbuild001.phacility.net`) and ran a command on it. ``` $ ./bin/drydock command --lease 90 -- ls / bin boot core dev etc home initrd.img lib lib64 lost+found media mnt opt proc root run sbin srv sys tmp usr var vmlinuz ``` Reviewers: chad, hach-que Reviewed By: chad, hach-que Maniphest Tasks: T9253 Differential Revision: https://secure.phabricator.com/D14126
18 lines
360 B
PHP
18 lines
360 B
PHP
<?php
|
|
|
|
abstract class DrydockInterface extends Phobject {
|
|
|
|
private $config = array();
|
|
|
|
abstract public function getInterfaceType();
|
|
|
|
final public function setConfig($key, $value) {
|
|
$this->config[$key] = $value;
|
|
return $this;
|
|
}
|
|
|
|
final protected function getConfig($key, $default = null) {
|
|
return idx($this->config, $key, $default);
|
|
}
|
|
|
|
}
|