<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
    主站蜘蛛池模板: 国产成年无码久久久免费| 亚洲日本中文字幕天天更新| 亚洲动漫精品无码av天堂| 亚洲国产精品无码久久久久久曰| 亚洲三级在线观看| 四虎影院在线免费播放| 亚洲综合激情五月色一区| 成人av免费电影| 日本系列1页亚洲系列| 四虎影院永久免费观看| 一区二区三区免费视频网站| 中文字幕亚洲专区| 日本亚洲欧洲免费天堂午夜看片女人员| 久久亚洲高清观看| 6080午夜一级毛片免费看| 亚洲中文久久精品无码1 | 国产亚洲精品成人a v小说| 久久er国产精品免费观看8| 亚洲av无码不卡| 久久精品国产免费观看| 亚洲一久久久久久久久| 亚洲精品国产福利一二区| a级毛片黄免费a级毛片| 久久丫精品国产亚洲av不卡| 456亚洲人成在线播放网站| 免费在线观看日韩| 免费无毒a网站在线观看| 亚洲国产一区二区三区| 最近2019中文免费字幕在线观看| 亚洲电影免费观看| 日本人的色道www免费一区| a一级毛片免费高清在线| 亚洲高清中文字幕综合网| 女人被弄到高潮的免费视频| 一级白嫩美女毛片免费| 亚洲国产成人久久综合一| 成人免费毛片观看| 青青操在线免费观看| 亚洲AV成人一区二区三区在线看| 亚洲国产精品综合久久网络| 日本免费人成视频在线观看|