code/model/jobs/DNCreateEnvironment.php 1 location
|
@@ 41-50 (lines=10) @@
|
| 38 |
|
* @param int $int |
| 39 |
|
* @return string |
| 40 |
|
*/ |
| 41 |
|
public static function map_resque_status($int) { |
| 42 |
|
$remap = array( |
| 43 |
|
Resque_Job_Status::STATUS_WAITING => "Queued", |
| 44 |
|
Resque_Job_Status::STATUS_RUNNING => "Running", |
| 45 |
|
Resque_Job_Status::STATUS_FAILED => "Failed", |
| 46 |
|
Resque_Job_Status::STATUS_COMPLETE => "Complete", |
| 47 |
|
false => "Invalid", |
| 48 |
|
); |
| 49 |
|
return $remap[$int]; |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
/** |
| 53 |
|
* @return string |
code/model/jobs/DNDataTransfer.php 1 location
|
@@ 96-105 (lines=10) @@
|
| 93 |
|
* @param int $int |
| 94 |
|
* @return string |
| 95 |
|
*/ |
| 96 |
|
public static function map_resque_status($int) { |
| 97 |
|
$remap = array( |
| 98 |
|
Resque_Job_Status::STATUS_WAITING => "Queued", |
| 99 |
|
Resque_Job_Status::STATUS_RUNNING => "Running", |
| 100 |
|
Resque_Job_Status::STATUS_FAILED => "Failed", |
| 101 |
|
Resque_Job_Status::STATUS_COMPLETE => "Complete", |
| 102 |
|
false => "Invalid", |
| 103 |
|
); |
| 104 |
|
return $remap[$int]; |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
/** |
| 108 |
|
* @param boolean $value |
code/model/jobs/DNGitFetch.php 1 location
|
@@ 38-47 (lines=10) @@
|
| 35 |
|
* @param int $int |
| 36 |
|
* @return string |
| 37 |
|
*/ |
| 38 |
|
public static function map_resque_status($int) { |
| 39 |
|
$remap = array( |
| 40 |
|
Resque_Job_Status::STATUS_WAITING => "Queued", |
| 41 |
|
Resque_Job_Status::STATUS_RUNNING => "Running", |
| 42 |
|
Resque_Job_Status::STATUS_FAILED => "Failed", |
| 43 |
|
Resque_Job_Status::STATUS_COMPLETE => "Complete", |
| 44 |
|
false => "Invalid", |
| 45 |
|
); |
| 46 |
|
return $remap[$int]; |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
/** |
| 50 |
|
* Queue a fetch job |
code/model/jobs/DNPing.php 1 location
|
@@ 80-92 (lines=13) @@
|
| 77 |
|
/** |
| 78 |
|
* @return string |
| 79 |
|
*/ |
| 80 |
|
public function ResqueStatus() { |
| 81 |
|
$status = new Resque_Job_Status($this->ResqueToken); |
| 82 |
|
|
| 83 |
|
$remap = array( |
| 84 |
|
Resque_Job_Status::STATUS_WAITING => "Queued", |
| 85 |
|
Resque_Job_Status::STATUS_RUNNING => "Running", |
| 86 |
|
Resque_Job_Status::STATUS_FAILED => "Failed", |
| 87 |
|
Resque_Job_Status::STATUS_COMPLETE => "Complete", |
| 88 |
|
false => "Invalid", |
| 89 |
|
); |
| 90 |
|
|
| 91 |
|
return $remap[$status->get()]; |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
/** |
| 95 |
|
* Queue a ping job |
code/model/jobs/DNDeployment.php 1 location
|
@@ 59-68 (lines=10) @@
|
| 56 |
|
* @param int $int |
| 57 |
|
* @return string |
| 58 |
|
*/ |
| 59 |
|
public static function map_resque_status($int) { |
| 60 |
|
$remap = array( |
| 61 |
|
Resque_Job_Status::STATUS_WAITING => "Queued", |
| 62 |
|
Resque_Job_Status::STATUS_RUNNING => "Running", |
| 63 |
|
Resque_Job_Status::STATUS_FAILED => "Failed", |
| 64 |
|
Resque_Job_Status::STATUS_COMPLETE => "Complete", |
| 65 |
|
false => "Invalid", |
| 66 |
|
); |
| 67 |
|
return $remap[$int]; |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
|
| 71 |
|
public function Link() { |