ãã®è¨äºã§ã¯ãFabricã®ä¸»è¦ã¡ã½ããã§ãã run() 㨠sudo() ã«ã¤ãã¦è§£èª¬ãã¾ãã ãµã³ãã«ã³ã¼ã㯠https://github.com/shiumachi/fabric-sample ã«ããã¾ãã run() 㨠sudo() ã®åºæ¬ èªã¿ãããããããã以å¾ã¯å¿ è¦ããªãéã run() ã¡ã½ããã®ã¿ãåãä¸ãã¾ããrun() ã§åºæ¥ããã¨ã¯ã»ã¼å ¨ã¦ sudo() ã§ãåºæ¥ã¾ããæããç¡ãéããrun() 㯠sudo() ã¨èªã¿æ¿ãããã¨ãã§ãã¾ãã from fabric.api import run ã§ã¤ã³ãã¼ãå¯è½ run([ã³ãã³ãæåå]) ã§ãä»»æã®ã³ãã³ãæååãå®è¡å¯è½ sudo([ã³ãã³ãæåå]) ã¨ããã°ãä»»æã®ã³ãã³ãæååã sudo ã§ãã ã¨ã©ã¼ãã³ããªã³ã° run() ã§å®è¡ããã³ãã³ãã失æããå ´åãfab ã³ãã³ãèªä½ããã®å ´ã§ä¸æ
{{#tags}}- {{label}}
{{/tags}}