forked from matschaffer/knife-solo
/
newb
executable file
·38 lines (29 loc) · 949 Bytes
/
newb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh
set -e
help() {
cat <<TXT
=== Thanks for helping with Knife-Solo! ===
The b folder contains bundler bin-stubs. These will let you test your changes more easily.
Just run: $(cd `dirname $0`/.. && pwd )/b/knife
Use rake to run the tests and rake -T to see the options.
If you want to run integration testing grab your AWS keys from https://aws-portal.amazon.com/gp/aws/securityCredentials and enter them in test/support/config.yml
The integration tests will try to create a key pair called knife-solo. If you've already created a key pair with that name please store it in test/support/knife-solo.pem. If you need to use a different key name you can set it in test/support/config.yml
TXT
}
setup() {
gem install bundler
bundle --binstubs=b
bundle exec rake
if [[ ! -e test/support/config.yml ]]; then
cp test/support/config.yml{.example,}
fi
}
case $1 in
help)
help
;;
*)
setup
help
;;
esac