Install osxfuse (3.x.x) from https://github.com/osxfuse/osxfuse/releases.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"brew updateosxfuse (3.x.x) from https://github.com/osxfuse/osxfuse/releases.ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"brew updateHi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
This is a short and simple example of custom assertions for Minitest.
They are very basic, but they help me to learn it. And I can use the to test some very simple use case of remote conection without install a bunch of gems.
I learn what I needed for this from this article and the minitest-chef-handler's code.
It can be improved a lot using Nokogiri and other Ruby libraries.
| { | |
| "Statement": [ | |
| { | |
| "Sid": "AllowPublicRead", | |
| "Effect": "Allow", | |
| "Principal": { | |
| "AWS": "*" | |
| }, | |
| "Action": "s3:GetObject", | |
| "Resource": "arn:aws:s3:::bucket_name_here/*" |
| # load a chef node and turn it into an actual node object | |
| node = Chef::Node.load("xxxx") # returns a hash | |
| node = Chef::Node.new.tap do |n| | |
| n.name( node["name"] ) | |
| n.chef_environment( node["chef_environment"] ) | |
| n.run_list( node["run_list"]) | |
| n.normal_attrs = node["normal"] | |
| n.default_attrs = node["default"] |