<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    莊周夢蝶

    生活、程序、未來
       :: 首頁 ::  ::  :: 聚合  :: 管理

    Clojure-Control 0.3.0 is out

    Posted on 2012-02-18 22:08 dennis 閱讀(3457) 評論(0)  編輯  收藏 所屬分類: my open-sourceClojure
        Clojure-control is a clojure DSL for system admin and deployment with many remote machines via ssh. 
        
        I am pleased to annoucment that clojure-control 0.3.0 is out.It adds some  powerful features in this release ,includes:
    • ssh and scp both have a new option :sudo  to be executed as root on remote machines,for example:
      (ssh "/etc/init.d/ssh restart" :sudo true)
    • scp has a new  option :mode to change file modes copied from local: 
      (scp "start.sh" "/etc/init.d/start.sh" :sudo true :mode 755)
    • A  new function "exists?" to test if a file exists on remote machines:  
      (if (not (exists? (str "/home/deploy/.ssh")))
            (ssh (sudo (str "mkdir -p /home/deploy/.ssh"))))
    • Call other task in deftask with "call" function:
      (deftask :ps "A task to grep process" [process]
              (ssh (str "ps aux | grep " process)))
      (deftask :start_ha []
              (ssh "/etc/init.d/haproxy start")
              (call :ps "haproxy"))
    • A new function "append" to append a line to a file on remote machines:
      (ssh (append "/etc/hosts" "192.168.1.100 web" :sudo true))
    • A new function "sed" to replace lines in a file on remote machines,and comm/uncomm to comment/uncomment a line in a file:
            (sed <file> <before> <after> :flags <flags> :limit <limit> :backup <backup>)
      

      Equivalent to

            sed -i<backup> -r -e "<limit> s/<before>/<after>/<flags>g <filename>"
    • Limits max output line to 10000.
    • Adds more documents in wiki: https://github.com/killme2008/clojure-control/wiki 
       You can install the new version by :
        lein plugin install control 0.3.0           #For clojure 1.3
        lein plugin install control 0.3.1           #For clojure 1.2

        More information please visit it on github: https://github.com/killme2008/clojure-control
    主站蜘蛛池模板: 亚洲丁香色婷婷综合欲色啪| 亚洲精品线路一在线观看| 亚洲一区二区三区电影| 久久这里只精品热免费99| 亚洲AV日韩AV天堂一区二区三区| 51午夜精品免费视频| 亚洲午夜久久久久久噜噜噜| 免费在线观看毛片| 羞羞网站在线免费观看| 国产精品xxxx国产喷水亚洲国产精品无码久久一区 | 日本不卡免费新一二三区| 亚洲欧美一区二区三区日产| 好爽…又高潮了免费毛片| 亚洲国产精品网站在线播放| 又大又粗又爽a级毛片免费看| 一级做a爰片久久毛片免费陪 | 亚洲二区在线视频| 毛片a级毛片免费观看品善网| 亚洲人成色在线观看| 国产成人高清精品免费软件| 无码人妻一区二区三区免费视频 | 久久国产亚洲电影天堂| 免费观看美女用震蛋喷水的视频| 亚洲国产精品久久久久秋霞影院| 久久久久久国产a免费观看黄色大片| 亚洲成_人网站图片| 亚洲欧洲中文日韩av乱码| 免费成人在线视频观看| 亚洲国产成人精品无码一区二区| 午夜dj免费在线观看| a级毛片免费高清视频| 亚洲视频一区调教| 女人被男人桶得好爽免费视频| 特黄aa级毛片免费视频播放| 亚洲AV无码成人网站久久精品大| h视频在线观看免费网站| 亚洲AV色欲色欲WWW| 亚洲成AV人片天堂网无码| 黄色成人网站免费无码av| 夜夜爽妓女8888视频免费观看| 亚洲AV区无码字幕中文色|