-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
78 changed files
with
1,764 additions
and
315 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
/** | ||
* @author Krystian Kuczek <krystian@hexmedia.pl> | ||
* @copyright 2013-2016 Hexmedia.pl | ||
* @license @see LICENSE | ||
*/%namespace_block% | ||
|
||
/** | ||
* Class Application | ||
* | ||
* @package %namespace% | ||
*/ | ||
class %name% | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
global_exclude_dirs: | ||
- vendor | ||
- Tests | ||
- src-dev | ||
|
||
rules: | ||
git.user_specific_ignored_file: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
Tests: | ||
------ | ||
* Configure at least one osx(travis) environment to test if it is working on osx. | ||
|
||
This version | ||
------------ | ||
* System reader should also use factory. | ||
* Read should be done always via System/*.php (eg. for Unix System/Unix.php) | ||
* Configure at least one osx(travis) environment to test if it is working on osx. | ||
* Readers needs to be checked and refactored | ||
* Check names of all systems that should be supported. All Unix like. | ||
* Add phpspec to existing commands | ||
* Add specs to existing commands | ||
* Try integration with Symfony CrontabBundle. This will need some commands to be rewritten | ||
* Write behat tests | ||
* Unify exception names. | ||
* Change beforeComment to comment | ||
* Add protection for special strings in unix, if they exists, this should not work. | ||
|
||
Next Versions | ||
------------ | ||
* support for windows Tasks (more info: http://stackoverflow.com/questions/132971/what-is-the-windows-version-of-cron, https://msdn.microsoft.com/en-us/library/windows/desktop/bb736357(v=vs.85).aspx) | ||
* support for special strings in unix cron (only reading will be enough i think), and possibility to setup cron for startup. | ||
* create comment object that can be added to task or variable | ||
------------- | ||
* support for special strings in unix cron, and possibility to setup cron for startup. | ||
* support for comments in variables, currently, all comments between variables will be ignored, and removed. | ||
* Why appveyor is not resulting in error after runing travis | ||
* add support for importing tasks from crontab to file, should be interactive command. | ||
|
||
In future | ||
--------- | ||
* support for windows Tasks (more info: http://stackoverflow.com/questions/132971/what-is-the-windows-version-of-cron, https://msdn.microsoft.com/en-us/library/windows/desktop/bb736357(v=vs.85).aspx) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<tasks> | ||
</tasks> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,40 @@ | ||
{ | ||
"s3_synchronize": { | ||
"command": "mwe:photo:s3 asgasg afasf", | ||
"command1": { | ||
"command": "./some/command1", | ||
"minute": "*/13", | ||
"hour": "*", | ||
"day_of_month": "*", | ||
"day_of_week": "*", | ||
"month": "*", | ||
"log_file": "./logs/schema_validate.log", | ||
"log_file": "./logs/some_log1.log", | ||
"machine": "www*", | ||
"comment": "this is some comment for this crontab", | ||
"variables": { | ||
"MAILTO": "k.kuczek@tvn.pl" | ||
"MAILTO": "test@test.pl" | ||
} | ||
}, | ||
"s3_synchronize2": { | ||
"command": "mwe:photo:s3 asgasg afasf", | ||
"command2": { | ||
"command": "./some/command2", | ||
"minute": "*", | ||
"hour": "*", | ||
"day_of_month": "*", | ||
"day_of_week": "*", | ||
"month": "*", | ||
"log_file": "./logs/schema_validate.log", | ||
"log_file": "./logs/some_log2.log", | ||
"machine": "www103", | ||
"variables": { | ||
"MAILTO": "j.zieba@tvn.pl" | ||
"MAILTO": "test@test.com", | ||
"NO_VALIDATE": true | ||
} | ||
}, | ||
"command_without_log_file": { | ||
"command": "./some/command_without_log_file", | ||
"minute": "*", | ||
"hour": "*", | ||
"day_of_month": "*", | ||
"day_of_week": "*", | ||
"month": "*", | ||
"machine": "www103" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,43 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<tasks> | ||
<task> | ||
<name>s3_synchornize</name> | ||
<command>mwe:photo:s3 asgasg afasf</command> | ||
<name>command1</name> | ||
<command>./some/command1</command> | ||
<minute>*/13</minute> | ||
<hour>*</hour> | ||
<dayOfWeek>*</dayOfWeek> | ||
<dayOfMonth>*</dayOfMonth> | ||
<month>*</month> | ||
<logFile>./logs/schema_validate.log</logFile> | ||
<logFile>./logs/some_log1.log</logFile> | ||
<machine>www*</machine> | ||
<comment>this is some comment for this crontab</comment> | ||
<variables> | ||
<variable name="MAILTO">k.kuczek@tvn.pl</variable> | ||
<variable name="MAILTO">test@test.pl</variable> | ||
</variables> | ||
</task> | ||
<task> | ||
<name>s3_synchornize2</name> | ||
<command>mwe:photo:s3 asgasg afasf</command> | ||
<name>command2</name> | ||
<command>./some/command2</command> | ||
<minute>*</minute> | ||
<hour>*</hour> | ||
<dayOfWeek>*</dayOfWeek> | ||
<dayOfMonth>*</dayOfMonth> | ||
<month>*</month> | ||
<logFile>./logs/schema_validate.log</logFile> | ||
<logFile>./logs/some_log2.log</logFile> | ||
<machine>www103</machine> | ||
<variables> | ||
<variable name="MAILTO">j.zieba@tvn.pl</variable> | ||
<variable name="MAILTO">test@test.com</variable> | ||
<variable name="NO_VALIDATE">1</variable> | ||
</variables> | ||
</task> | ||
<task> | ||
<name>command_without_log_file</name> | ||
<command>./some/command_without_log_file</command> | ||
<minute>*</minute> | ||
<hour>*</hour> | ||
<dayOfWeek>*</dayOfWeek> | ||
<dayOfMonth>*</dayOfMonth> | ||
<month>*</month> | ||
<machine>www103</machine> | ||
</task> | ||
</tasks> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Feature: Echoing crontab | ||
As a Developer | ||
I want to echo crontab from app | ||
# | ||
# Scenario: | ||
# When I run echo command with ini type | ||
# Then The exit code should be 0 | ||
# And The display should contain: | ||
# """ | ||
#Your crontab will look like: | ||
##WARNING!!! | ||
##This crontab file it at least partially managed by Crontab by Hexmedia, please check all restrictions that comes with that library at: https://github.com/Hexmedia/Crontab/blob/master/README.md | ||
##EOT | ||
# | ||
# | ||
# | ||
## ------------ CURRENTLY MANAGED by Test -------------- | ||
# | ||
##DO NOT MODIFY! This task is managed by Crontab library by Hexmedia 0cbc6611f5341b9a85da40865f5647c | ||
## | ||
#MAILTO=test@test.pl | ||
#*/13 * * * * ./some/command1 > ./logs/some_log1.log | ||
##DO NOT MODIFY! This task is managed by Crontab library by Hexmedia 0cbc6611f5f6034d349bc599edc77a3 | ||
## | ||
#MAILTO=test@test.com | ||
#NO_VALIDATE=1 | ||
#* * * * * ./some/command2 > ./logs/some_log2.log | ||
# """ | ||
# |
Oops, something went wrong.