FastHandle is fast operation tools for infrastructure configurations and tests.
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
os:linux:example:index.html [2018/03/25 00:29] kurihara |
os:linux:example:index.html [2020/02/21 01:18] (current) kurihara |
||
---|---|---|---|
Line 12: | Line 12: | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
$ fab -l |grep example. | $ fab -l |grep example. | ||
- | $ fab -H host1, | + | $ fab -H host1, |
</ | </ | ||
Line 18: | Line 18: | ||
==== Fabric one-line Task Examples ==== | ==== Fabric one-line Task Examples ==== | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
- | fab -H host1, | + | fab -H host1, |
- | fab -H host1, | + | fab -H host1, |
</ | </ | ||
Line 52: | Line 52: | ||
</ | </ | ||
+ | |||
+ | \\ | ||
+ | ===== TIPS ===== | ||
+ | ==== color ==== | ||
+ | |||
+ | <sxh python toolbar: | ||
+ | from fabric.colors import * | ||
+ | |||
+ | def color(): | ||
+ | print ' | ||
+ | print blue(' | ||
+ | print cyan(' | ||
+ | print green(' | ||
+ | print magenta(' | ||
+ | print red(' | ||
+ | print white(' | ||
+ | print yellow(' | ||
+ | print (red(" | ||
+ | </ | ||
+ | |||
+ | ==== tomcat start ==== | ||
+ | <sxh python toolbar: | ||
+ | def startTomcat(): | ||
+ | run('/ | ||
+ | </ | ||
+ | |||
\\ | \\ |
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.