The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
I hereby claim:
To claim this, I am signing this object:
traceroute to ldc52e.clearspring.com (8.37.70.145), 30 hops max, 60 byte packets | |
1 ip-10-0-0-0.us-west-1.compute.internal (10.0.0.0) 0.211 ms 0.175 ms 0.167 ms | |
2 ip-10-0-0-0.us-west-1.compute.internal (10.0.0.0) 0.163 ms 0.129 ms 0.112 ms | |
3 * * * | |
4 * * * | |
5 * * * | |
6 * * * | |
7 100.64.78.174 (100.64.78.174) 3.735 ms 100.64.79.134 (100.64.79.134) 0.924 ms 100.64.78.164 (100.64.78.164) 3.689 ms | |
8 100.64.89.208 (100.64.89.208) 0.416 ms 100.64.91.242 (100.64.91.242) 0.393 ms 100.64.92.50 (100.64.92.50) 0.425 ms | |
9 100.64.200.49 (100.64.200.49) 9.027 ms 100.64.200.35 (100.64.200.35) 17.626 ms 100.64.200.19 (100.64.200.19) 1.345 ms |
%w{ package1 package2 package3 }.each do |pkg| | |
package pkg do | |
action :install | |
end | |
end |
license_file_contents = NIL | |
if Chef::DataBag.list.key?('pmta_licenses') | |
Chef::Log.warn("Found pmta_licenses data bag...") | |
begin | |
license_file_contents = data_bag_item("pmta_licenses", node['hostname'])['license'] | |
Chef::Log.warn("found hostname license in data bag...") | |
file "/etc/pmta/license" do | |
owner 'pmta' | |
group 'pmta' | |
mode 0640 |
directories = %w( /dir/one /dir/two /dir/three ) | |
directories.each do |dir| | |
directory dir do | |
owner "foo" | |
mode 0755 | |
end | |
end |
line = '127.0.0.1 gateway.internal gateway' | |
file = Chef::Util::FileEdit.new('/etc/hosts') | |
file.insert_line_if_no_match(/#{line}/, line) | |
file.write_file |
[microwaving] | |
Microwaving is an action applying to one thing. | |
Understand "microwave [something]" as microwaving. | |
Understand "cook [something]" as microwaving. | |
Understand "heat [something]" as microwaving. | |
Understand "reheat [something]" as microwaving. | |
Check microwaving: | |
Unless the microwave oven is in the location, say "How do you propose to do that?" instead; | |
Unless the microwave is empty: |
"test" by "custo" | |
Combining it with is an action applying to two carried things. | |
Understand "combine [something] and [something]" as combining it with. | |
Understand "combine [something] with [something]" as combining it with. | |
Understand the command "attach" as something new. Understand "attach [something] to [something]" as combining it with. | |
The combining it with action has an object called the item built. | |
Setting action variables for combining something with something: |
[microwaving] | |
Microwaving is an action applying to one thing. | |
Understand "microwave [something]" as microwaving. | |
Understand "cook [something]" as microwaving. | |
Understand "heat [something]" as microwaving. | |
Understand "reheat [something]" as microwaving. | |
Check microwaving: | |
Unless the microwave oven is in the location, say "How do you propose to do that?" instead; | |
Unless the microwave is empty: |