Commit: a4b3977e74e76cdba1d567be4c5c5f63d2d18de1
Author: alkemann | Date: 2009-12-09 23:13:47 +0100
diff --git a/extensions/command/Bin.php b/extensions/command/Bin.php
index 2b009e4..0d06d6f 100644
--- a/extensions/command/Bin.php
+++ b/extensions/command/Bin.php
@@ -20,6 +20,19 @@ class Bin extends \lithium\console\Command {
$this->header('Lithium Bin');
$result = Paste::install();
PasteView::create()->save();
+ return $this->checkView();
+ }
+
+ public function update() {
+ $view = PasteView::find('_design/paste');
+ if ($view && !isset($view->error)) {
+ $view->delete();
+ }
+ PasteView::create()->save();
+ return $this->checkView();
+ }
+
+ protected function checkView() {
$view = PasteView::find('_design/paste');
if (!empty($view->reason)) {
switch($view->reason) {