Skip to content

Commit

Permalink
Merge branch 'kirtangajjar-add-cron-command' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
mbtamuli committed Jul 23, 2018
2 parents 2a1b7c0 + 556d06a commit 7910f87
Show file tree
Hide file tree
Showing 8 changed files with 455 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.DS_Store
.git
.gitignore
.gitlab-ci.yml
.editorconfig
.travis.yml
behat.yml
circle.yml
bin/
features/
utils/
*.zip
*.tar.gz
*.swp
*.txt
*.log
25 changes: 25 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab

[{.jshintrc,*.json,*.yml,*.feature}]
indent_style = space
indent_size = 2

[{*.txt,wp-config-sample.php}]
end_of_line = crlf

[composer.json]
indent_style = space
indent_size = 4
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.DS_Store
wp-cli.local.yml
node_modules/
vendor/
*.zip
*.tar.gz
*.swp
*.txt
*.log
composer.lock
.idea
*.db
28 changes: 28 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "easyengine/cron-command",
"description": "Manages cron jobs in EasyEngine",
"type": "ee-cli-package",
"homepage": "https://github.com/easyengine/cron-command",
"license": "MIT",
"authors": [],
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"": "src/"
},
"files": [ "cron-command.php" ]
},
"extra": {
"branch-alias": {
"dev-master": "1.x-dev"
},
"bundled": true,
"commands": [
"cron add",
"cron delete",
"cron list",
"cron run-now"
]
}
}
12 changes: 12 additions & 0 deletions cron-command.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

if ( ! class_exists( 'EE' ) ) {
return;
}

$autoload = dirname( __FILE__ ) . '/vendor/autoload.php';
if ( file_exists( $autoload ) ) {
require_once $autoload;
}

EE::add_command( 'cron', 'Cron_Command' );
2 changes: 2 additions & 0 deletions ee.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require:
- cron-command.php
Loading

0 comments on commit 7910f87

Please sign in to comment.