This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/modules/ssl/classes/Task/Ssl/Renew.php

26 lines
554 B
PHP
Raw Permalink Normal View History

2013-10-10 02:44:53 +00:00
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* Renew an SSL Certificate
*
* @package SSL
* @category Tasks
* @author Deon George
* @copyright (c) 2009-2013 Open Source Billing
* @license http://dev.osbill.net/license.html
*/
class Task_SSL_Renew extends Minion_Task {
protected $_options = array(
'id'=>NULL,
2013-11-08 11:02:32 +00:00
'force'=>FALSE,
);
2013-10-10 02:44:53 +00:00
/**
* Renew a certificate
*/
protected function _execute(array $params) {
2013-12-04 10:37:09 +00:00
ORM::factory('Service',$params['id'])->plugin()->renew(Minion_CLI::options('force'));
2013-10-10 02:44:53 +00:00
}
}
?>