TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

ShutIt – Automation framework for programmers

135 点作者 indatawetrust将近 9 年前

5 条评论

zwischenzug将近 9 年前
Author here. Quite surprised to see this.<p>Another related tool I&#x27;m working on is:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;ianmiell&#x2F;shutitfile" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ianmiell&#x2F;shutitfile</a><p>Why this over Ansible? It&#x27;s a long story :)<p>Mainly because not everyone is a great or even decent programmer, so I wanted an easy way in for them for the situation I was in. Hence automation for everyone. But I don&#x27;t think this is a serious competitor for Ansible.<p>Happy to answer questions as they arise.
评论 #12065626 未加载
评论 #12065750 未加载
评论 #12065696 未加载
评论 #12072624 未加载
评论 #12065771 未加载
评论 #12066817 未加载
emilong将近 9 年前
Just curious how you decide the line between what is handled by ShutIt and what&#x27;s handled in the shell?<p>For example, from the example on the home page:<p><pre><code> # Ensure git is installed. This handles different distros gracefully. shutit.install(&#x27;git&#x27;) </code></pre> Awesome and very powerful abstraction! Vs the next lines...<p><pre><code> # If the directory does not exist, we create it if not shutit.file_exists(&#x27;&#x2F;opt&#x2F;shutit&#x27;,directory=True): shutit.send(&#x27;mkdir &#x2F;opt&#x2F;shutit&#x27;) </code></pre> Why not just:<p><pre><code> shutit.send(&#x27;mkdir -p &#x2F;opt&#x2F;shutit&#x27;) </code></pre> There are a few other examples where I was wondering how you decided to do some operations in ShutIt vs delegating to shell. In fact, some entire examples look simpler to me in shell that you could just send. Does using the ShutIt native commands make things more testable?
评论 #12066726 未加载
throwanem将近 9 年前
For the working sysadmin or devops specialist, what does this offer over e.g. Ansible?
评论 #12065684 未加载
评论 #12065534 未加载
leetrout将近 9 年前
There&#x27;s also a somewhat similar tool (much more bare bones) called fabric.<p><a href="http:&#x2F;&#x2F;www.fabfile.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.fabfile.org&#x2F;</a><p>I&#x27;ve used Fabric a lot and it&#x27;s &quot;cousin&quot; invoke. I wish I&#x27;d seen fabric listed in the requirements.txt because I feel like it&#x27;s got a nice API and has been around a while and is probably a bit more battle tested...
评论 #12065974 未加载
Phithagoras将近 9 年前
code at <a href="https:&#x2F;&#x2F;github.com&#x2F;ianmiell&#x2F;shutit" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ianmiell&#x2F;shutit</a>