ãæå·åzipã§ä¿åãã¦ã¡ã¼ã«ã§éãã次ã®ã¡ã¼ã«ã§ãã¹ã¯ã¼ããéããã¨ããããåãããªãç¿æ £ãããã¨ã¦ãã¡ã³ããããã®ã§ãèªååãããã£ãããautomatorã§é¸æããããã¡ã¤ã«ä¸è¦§ãARGVã«åãåã£ãããã¦ã·ã§ã«ã¹ã¯ãªããã¨ãrubyã§ããããæ¸ããããªãã¨æã£ã¦ãããå 輩 (@chephes) ã«ãã§ãããï¼ãã£ã¦æãã¦ããã£ãã®ã§ä½ã£ãã def getRandomString (length = 10) source = ("a".."z").to_a + ("A".."Z").to_a + (0..9).to_a key = "" length.times{ key += source[rand(source.size)].to_s } return key end password = getRandomString if ARGV.length == 1 path = A
{{#tags}}- {{label}}
{{/tags}}