Permalink
Browse files

cyclone helper script

  • Loading branch information...
1 parent fc6230b commit 0953a5d5ba412c9c2a5785d112a2095d43ef5d96 @fiorix committed Dec 11, 2012
Showing with 28 additions and 0 deletions.
  1. +28 −0 scripts/cyclone
View
@@ -0,0 +1,28 @@
+#!/bin/bash
+# Copyright 2012 Alexandre Fiori
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+opt=$1
+shift
+
+case "$opt" in
+ run)
+ twistd -n cyclone $*
+ ;;
+ app)
+ python -m cyclone.app $*
+ ;;
+ *)
+ echo "use: $0 [run|app]"
+esac

0 comments on commit 0953a5d

Please sign in to comment.