From ac88cb17e52ab6c90f438690fae92c08a6c6c1cc Mon Sep 17 00:00:00 2001 From: Mark Slee Date: Wed, 7 Aug 2013 23:13:37 -0700 Subject: [PATCH] Move fabric stuff to GummyBear repo --- fabric/HOWTOFABRIC.txt | 55 ----------------------------------------- fabric/fabfile.py | 26 ------------------- fabric/fabfile.pyc | Bin 1360 -> 0 bytes fabric/startboth.pyc | Bin 542 -> 0 bytes 4 files changed, 81 deletions(-) delete mode 100644 fabric/HOWTOFABRIC.txt delete mode 100644 fabric/fabfile.py delete mode 100644 fabric/fabfile.pyc delete mode 100644 fabric/startboth.pyc diff --git a/fabric/HOWTOFABRIC.txt b/fabric/HOWTOFABRIC.txt deleted file mode 100644 index 9d79c36..0000000 --- a/fabric/HOWTOFABRIC.txt +++ /dev/null @@ -1,55 +0,0 @@ -Using fabric: - -Install: -(http://docs.fabfile.org/en/1.7/installation.html) - -pip install fabric - -Tutorial: - -http://docs.fabfile.org/en/1.4.0/index.html#tutorial - -Usage: - -write a python file called fabfile.py (or add to the current one) - -annotate tasks with @task - -e.g: - -from fabric.api import run,env,task,sudo,cd - -@task -def sayHelloAll(): - print "Hello local" - run("echo Hello Remote") - -then from the command line: - -#shows all commands - -fab list - -# run a command - -fab sayHello - -# run command on specific host - -fab sayHello:host=192.168.1.29 - -# run a command on a specific host with a specific user - -fab -u someUser startBoard:host=192.168.1.29 - -Run multiple: - -fab task1 task2 - -Run arbitrary remote command: - - fab [options] -- [shell command] - - - - diff --git a/fabric/fabfile.py b/fabric/fabfile.py deleted file mode 100644 index a6b1933..0000000 --- a/fabric/fabfile.py +++ /dev/null @@ -1,26 +0,0 @@ -from fabric.api import run,env,task,sudo,cd - -env.user = 'sugarcubes' -env.password = 'sugarcubes' -env.hosts = ['192.168.1.28'] - -@task -def startBoard(): - with cd('Desktop/SC_PB'): - sudo('./xc_PB 640 160 160 1000') - -@task -def loadModule(): - with cd('enable_arm_pmu-master'): - sudo('./load-module') - -@task -def stopBoard(): - sudo("ps -axcopid,command | grep \"xc_PB\" | awk '{ system(\"kill -9 \"$1) }'") - -@task -def restartBoard(): - stopBoard() - startBoard() - -#loadModule startBoard \ No newline at end of file diff --git a/fabric/fabfile.pyc b/fabric/fabfile.pyc deleted file mode 100644 index 3686d49deae7bfdd1c671c18cc31d89761a830da..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1360 zcmcgs-D}%05I@=ZUb3>mV2@rH)Pu!N$|x<2F`7ON7Fvg~k(Z!aYHDiP#*){RZBHG0 z-5A3$<}>HvF?6%KgIpk>onfopU1Es4(hi!^$!#RUj`|FVlZQ%9GE$v zT$s6_YA~yTs>7@fOgJDNm^WZ;G(otqV0N(u(gjh2?*MmrO53{ijoYzqW8*%sZgb;y zL9}4%w=tFE9*18?%eW}YDzjQy@j);; zJPJm^!O<3T12@L>+h-_@#f+)`+yiD9K|+Up#9EwxLNWCz{zUgso=S|G7vXd~KReM+ zaU}?sG1}hYtD!eKT+iWf=u=7&Wg5}vKF&Xcrs&}ZElVBpR4%6x+r!+eO-&*uodu z8}MbE7m0Wo=SuNRcweanh1a*;?4!$XuD$&)p1wuU%I{w%Y3dD*z5esj3-8;$&+xRJ zc9!mdMy}b$J|c$zfU|8YWni&BMgy_lfu%1gi>6o&o?u5xX(#SszHBMXb_ cv@2K?;Pr~+ZzxquE8l6eHtRZjb$n{S0Tb9GT>t<8 diff --git a/fabric/startboth.pyc b/fabric/startboth.pyc deleted file mode 100644 index 1db9f97f601138510b0a2e9f4026df2121aad35a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 542 zcmb7AJx{|h5IsBnpcROYjEosjtad=Dgb;!~f>tbDsw56=r8bUyHia2}7XJ!~74EE} zh!M+vzIW%ld*|r$WSD+^Jd|))lI|Nim=S2&0=57<0Sf_wxeQ#wLK2UllCX^6V01v! z?!rn2e;0HQ-T@Xp(0!Q4M^tk2O)C~;xro5}x+PWp?1tn-zshatiwg0W=y*Cw#+PX_ zP9`aG{MRv={*ishsb>T($bKWiPOxCMNcueHj#(&C>hqN;Ol~#y$(g8^a(RCn^Yk-1 z;5r28wTYRvfEPs7BUTnwQPn$Rt=X$quzJc1g)Xsr&(0D{IC8 -- 2.34.1