Examples are decalred using the it method
Assertions are called Expectations
should and should_not are called Modifiers
Matchers are the operators in the assertions (==, >, be_true, etc.)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Assumption: Mac OS X | |
CHEFDK="/opt/chefdk/embedded" | |
CHEFDK_USER="$HOME/.chefdk/gem/ruby/2.1.0" | |
RVM_GEMS="$HOME/.rvm/gems" | |
RVM_RUBIES="$HOME/.rvm/rubies" | |
RUBY_NAME="ext-chefdk-ruby" | |
mkdir -p $RVM_RUBIES/$RUBY_NAME | |
ln -s $CHEFDK/bin $RVM_RUBIES/$RUBY_NAME |
TCL-Expect scripts are an amazingly easy way to script out laborious tasks in the shell when you need to be interactive with the console. Think of them as a "macro" or way to programmaticly step through a process you would run by hand. They are similar to shell scripts but utilize the .tcl
extension and a different #!
call.
The first step, similar to writing a bash script, is to tell the script what it's executing under. For expect
we use the following:
#!/usr/bin/expect
I have spent quite a bit of time figuring out automounts of NFS shares in OS X...
Somewhere along the line, Apple decided allowing mounts directly into /Volumes should not be possible:
/etc/auto_master (see last line):
#
# Automounter master map
#
+auto_master # Use directory service
NewerOlder