<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 閱讀(3462) 評論(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
    主站蜘蛛池模板: 亚洲成人黄色在线| 4399影视免费观看高清直播| 3d成人免费动漫在线观看 | 亚洲视频在线不卡| 无人在线观看免费高清视频 | 亚洲女久久久噜噜噜熟女| 一级做a爰全过程免费视频毛片| 成人免费网站在线观看| 亚洲AV成人无码天堂| 国产精品色拉拉免费看| 亚洲伊人久久精品| 亚洲人成影院在线观看| 一级做a爰片久久免费| 亚洲日本视频在线观看| 亚洲A丁香五香天堂网| 色欲国产麻豆一精品一AV一免费| 亚洲AV无码日韩AV无码导航| 成人无码WWW免费视频| 亚洲日韩av无码中文| 亚洲av永久无码制服河南实里| 免费鲁丝片一级在线观看| 亚洲国产欧美国产综合一区| 女人张腿给男人桶视频免费版| 亚洲日本一线产区和二线| 亚洲αv在线精品糸列| 日本人的色道www免费一区| 97精品免费视频| 亚洲av无码电影网| 亚洲av永久无码制服河南实里 | 中文字幕亚洲色图| 亚洲一区无码精品色| 在线成人a毛片免费播放| 亚洲国产精品免费视频| 日本精品久久久久久久久免费| 国产亚洲成归v人片在线观看 | 2019中文字幕在线电影免费 | 亚洲日韩国产精品乱-久| 亚洲成Av人片乱码色午夜| 亚洲人成人无码网www国产| 在线观看免费宅男视频| 114一级毛片免费|