Comments (5)
Hi, I've just tried this
<?php
namespace Mage\Task\BuiltIn\Ioncube;
use Mage\Task\AbstractTask;
class EncryptTask extends AbstractTask
{
public function getName() {
return 'Encrypt';
}
public function run() {
return true;
}
}
and it worked ok.
Is the yaml indentation ok?
It must be
tasks:
pre-deploy:
- ioncube/encrypt
Let me know, it looks like an interesting task to add to the core :)
from magallanes.
Hi,
It was the yaml syntax, had used tab on one line and spaces on another,
Any chance of adding a syntax checker?
Once I have the module completed will let you have a look at it.
thanks
M
from magallanes.
Good.
I will look if the yaml parser library has a syntax validator.
from magallanes.
Hi Andres,
Even if the yaml parser outputs a error code to say something went wrong with the parsing, and that was echoed to the end user.
M
from magallanes.
Changed the YAML parser (now uses the Symfony YAML Component), so if the yaml is badly formatted, then exceptions will be thrown.
from magallanes.
Related Issues (20)
- project abandoned? HOT 2
- Install fails in Laravel project HOT 2
- outdated SSL certificate on magephp.com HOT 1
- Requires symfony/ console v3.4.29 which is incompatible with e.g. phpstan
- Preparing Tar file - FAIL on Windows HOT 4
- scp command uses same ssh options configuration HOT 1
- Symfony 5 support HOT 3
- Cannot install in Symfony 5 project because of console dependency HOT 9
- Magephp 3.4 problem with excludes files HOT 1
- composer.json restict magallane to PHP 7.1 HOT 1
- v4.1.0: New behavior / bug in build in Tar/PrepareTask.php HOT 3
- Clickjacking security issue: Missing X-Frame-Options header HOT 1
- on-release question
- TypeError Exception with Composer 2.3.0 HOT 5
- Add support for monolog/monolog 3.x.x HOT 1
- [Question] Config Placeholders HOT 1
- [Question] Local Install
- [Bug] Deployment fails if tar file gets lost
- [Feature] Setting Log level
- Deploy - Symfony 6.2.14 - Error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magallanes.