mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 02:01:33 +00:00
Update composer.json and add initial update script.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
2016-04-11 DariusIII
|
||||
* Upd: Update composer.json and add initial update script.
|
||||
* Fix: Fix duplicated cart icon on details page
|
||||
* Chg: Remove most of the select all selectors from Gentele theme.
|
||||
* Upd: Update Omicron to use icheck from shared/assets folder.
|
||||
|
||||
@@ -0,0 +1,123 @@
|
||||
<?php
|
||||
/**
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program (see LICENSE.txt in the base directory. If
|
||||
* not, see:
|
||||
*
|
||||
* @link <http://www.gnu.org/licenses/>.
|
||||
* @author niel
|
||||
* @copyright 2016 nZEDb
|
||||
*/
|
||||
namespace app\extensions\command;
|
||||
|
||||
use \Exception;
|
||||
use \lithium\console\command\Help;
|
||||
use \newznab\utility\Git;
|
||||
|
||||
|
||||
/**
|
||||
* Update various aspects of your indexer.
|
||||
*
|
||||
* @package app\extensions\command
|
||||
*/
|
||||
class Update extends \app\extensions\console\Command
|
||||
{
|
||||
private $gitBranch;
|
||||
|
||||
private $gitTag;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $config
|
||||
*/
|
||||
public function __construct(array $config = [])
|
||||
{
|
||||
$defaults = [
|
||||
'request' => null,
|
||||
'response' => [],
|
||||
'classes' => $this->_classes
|
||||
];
|
||||
parent::__construct($config + $defaults);
|
||||
}
|
||||
|
||||
public function git()
|
||||
{
|
||||
/*
|
||||
$git = new Git();
|
||||
$this->gitBranch = $git->getBranch();
|
||||
$this->gitTag = $git->tagLatest();
|
||||
*/
|
||||
}
|
||||
|
||||
public function nntmux()
|
||||
{
|
||||
try {
|
||||
$this->composer();
|
||||
} catch (Exception $e) {
|
||||
$this->error($e->getMessage());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function run($command = null)
|
||||
{
|
||||
if (!$command || !$this->request->args()) {
|
||||
return $this->_help($command);
|
||||
}
|
||||
|
||||
if (!$command) {
|
||||
return $this->_help($command);
|
||||
}
|
||||
|
||||
if ($this->_execute($command)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$this->error("{$command} could not be created.");
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
protected function composer()
|
||||
{
|
||||
passthru('composer install');
|
||||
}
|
||||
|
||||
/**
|
||||
* Invokes the `Help` command.
|
||||
* The invoked Help command will take over request and response objects of
|
||||
* the originally invoked command. Thus the response of the Help command
|
||||
* becomes the response of the original one.
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
protected function _help()
|
||||
{
|
||||
$help = new Help([
|
||||
'request' => $this->request,
|
||||
'response' => $this->response,
|
||||
'classes' => $this->_classes
|
||||
]);
|
||||
|
||||
return $help->run(get_class($this));
|
||||
}
|
||||
|
||||
/**
|
||||
* Class initializer. Parses template and sets up params that need to be filled.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function _init()
|
||||
{
|
||||
parent::_init();
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -71,7 +71,7 @@
|
||||
"bower-asset/animate.css":"~3.5.1",
|
||||
"bower-asset/bootstrap": "~3.3.6",
|
||||
"bower-asset/bootstrap-progressbar": "~0.9.0",
|
||||
"bower-asset/font-awesome": "~4.5.0",
|
||||
"bower-asset/font-awesome": "~4.5",
|
||||
"bower-asset/icheck": "~1.0.2",
|
||||
"bower-asset/jquery-2.2.x": "~2.2.1",
|
||||
"bower-asset/noty": "~2.3.8",
|
||||
|
||||
Generated
+6
-6
@@ -4,8 +4,8 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"hash": "a9a28ae34e622216a30da478db634f6a",
|
||||
"content-hash": "217685cb220dc9bb1aef98d691b1f976",
|
||||
"hash": "1f80bb3c9167f823fd98bd6898b4e305",
|
||||
"content-hash": "bdac0624578eee3905c10f1f63cbbc68",
|
||||
"packages": [
|
||||
{
|
||||
"name": "barracudanetworks/forkdaemon-php",
|
||||
@@ -155,16 +155,16 @@
|
||||
},
|
||||
{
|
||||
"name": "bower-asset/font-awesome",
|
||||
"version": "v4.5.0",
|
||||
"version": "v4.6.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/FortAwesome/Font-Awesome.git",
|
||||
"reference": "fddd2c240452e6c8990c4ef75e0265b455aa7968"
|
||||
"reference": "5697be912bc4aa455bfe343f50afdd41caae1a2f"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/FortAwesome/Font-Awesome/zipball/fddd2c240452e6c8990c4ef75e0265b455aa7968",
|
||||
"reference": "fddd2c240452e6c8990c4ef75e0265b455aa7968",
|
||||
"url": "https://api.github.com/repos/FortAwesome/Font-Awesome/zipball/5697be912bc4aa455bfe343f50afdd41caae1a2f",
|
||||
"reference": "5697be912bc4aa455bfe343f50afdd41caae1a2f",
|
||||
"shasum": ""
|
||||
},
|
||||
"type": "bower-asset-library",
|
||||
|
||||
Reference in New Issue
Block a user