Skip to content

Commit 64482fb

Browse files
committed
update
1 parent 1c7d32b commit 64482fb

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

raw/Automation for the People.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ impression that the command line interface was nothing but a dying remnant of ti
1717
My journey to some semblance of automation is filled with pitfalls and embarassing tales
1818
of my own incompetence, and I hope to share these tales with you.
1919

20-
## Bash Scripting
20+
## bash脚本编程
2121

2222
One of the pitfalls of interacting with a command-line system is that every complicated
2323
interaction takes an equally complicated command to invoke - and for commands that I might
@@ -210,12 +210,9 @@ to handle all of their fiddly installation steps by hand.
210210

211211
## Ansible
212212

213-
Fabric is great, but there are a few things it doesn't do particularly well.
213+
Fabric很棒,但有几件事它做的没那么漂亮。
214214

215-
While debugging the Fabric tasks, I'd run
216-
the tasks on the same server again and again and again, and each time it would
217-
start from the beginning and run the whole script. If there was a slow step,
218-
it could add hours to my debugging process.
215+
在调试Fabric任务时,我在同一个服务器一遍又一遍的运行任务,而每一次它都会从头开始,运行整个脚本。如果有一个步骤很慢,那么它将会拖慢我的调试过程。
219216

220217
Which meant that I would just comment out large chunks of my scripts as I worked
221218
on them, testing out the "head" of the script while I left the tail commented
@@ -253,7 +250,7 @@ Ansible also contains, amongst other things, a full-featured
253250
templating system for creating configuration files, and a password
254251
store with two-way encryption to stash important configuration credentials.
255252

256-
Ansible solves a lot of problems.
253+
Ansible解决了很多问题。
257254

258255
## Invoke
259256

@@ -309,23 +306,22 @@ rest of the application.
309306
Invoke has many more features, but covering them all would be beyond the scope
310307
of this already over-long blog post.
311308

312-
## Conclusion
309+
## 结论
313310

314311
Clearly, my journey towards repeatable, useful project automation still
315312
has a long way to go, but I've definitely found some very useful tools
316-
in the intersection between `invoke` and `ansible`.
313+
in the intersection between `invoke``ansible`.
317314

318315
We get all of the composability of Python, all of the practicality
319316
of Ansible, and all of the convenience of a task runner.
320317

321318
## P.S.
322319

323320
One final gripe: Invoke supports Python 3 beautifully, but Ansible is still
324-
tied to the Python Dark Ages of Python 2, so in order to run both Invoke and
325-
Python together, we must accept an inferior Python.
321+
tied to the Python Dark Ages of Python 2, so in order to run both Invoke和Python together, we must accept an inferior Python.
326322

327-
Darn it.
323+
该死。
328324

329325
## P.P.S.
330326

331-
As far as I can tell, Javascript doesn't have anything like this. The closest I can find is `gulp`. Am I going to have to settle for `gulp`? Yegh.
327+
据我所知,Javascript没有像这样的东东。我能找到最接近的东西是`gulp`。难道我将不得不满足于`gulp`吗?Yegh.

0 commit comments

Comments
 (0)