Index: elysia_cron.drush.inc
===================================================================
--- elysia_cron.drush.inc	(revision 0)
+++ elysia_cron.drush.inc	(revision 0)
@@ -0,0 +1,28 @@
+<?php
+/**
+ * Implementation of hook_drush_command().
+ */
+function elysia_cron_drush_command() {
+  $items = array();
+
+  $items['elysia-cron'] = array(
+    'description' => "Run Elysia Cron",
+    'callback'    => 'drush_elysia_cron_run_wrapper',
+    'arguments' => array(
+    ),
+  );
+
+  return $items;
+}
+
+/**
+ * A drush command callback.
+ * 
+ * wraps the elysia_cron_run function, passing manual = false
+ */
+function drush_elysia_cron_run_wrapper() {
+  $cron_key = _ec_variable_get('cron_key', '');
+  $_GET['cron_key'] = $cron_key;
+
+  return elysia_cron_run(FALSE);
+}

Property changes on: elysia_cron.drush.inc
___________________________________________________________________
Added: svn:keywords
   + Id

Index: elysia_cron.module
===================================================================
--- elysia_cron.module	(revision 1280)
+++ elysia_cron.module	(working copy)
@@ -2027,30 +2027,3 @@
   }
 }
 
-/*******************************************************************************
- * DRUSH SUPPORT
- ******************************************************************************/
-
-/**
- * Implementation of hook_drush_command().
- */
-function elysia_cron_drush_command() {
-  $items = array();
-
-  $items['elysia-cron'] = array(
-    'description' => "Run all cron hooks in all active modules for specified site using elysia cron system. Use this instead of \"core-cron\" if elysia_cron module is installed",
-    'callback'    => 'drush_elysia_cron_run_wrapper',
-    'arguments' => array(),
-  );
-
-  return $items;
-}
-
-/**
- * A drush command callback.
- * 
- * wraps the elysia_cron_run function, passing manual = false
- */
-function drush_elysia_cron_run_wrapper() {
-  return elysia_cron_run(FALSE);
-}
