From 192e4e4a4d12d6c1d38060849162b65da0460321 Mon Sep 17 00:00:00 2001 From: Bruno Pinto Date: Wed, 15 May 2013 09:12:29 -0300 Subject: [PATCH] ec2 api plugin --- plugins/ec2/ec2.load | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 plugins/ec2/ec2.load diff --git a/plugins/ec2/ec2.load b/plugins/ec2/ec2.load new file mode 100644 index 0000000..ea542d6 --- /dev/null +++ b/plugins/ec2/ec2.load @@ -0,0 +1,18 @@ +### Main program + +if test -d (/usr/libexec/java_home) + set -gx JAVA_HOME (/usr/libexec/java_home) +end + +if test (/bin/ls $HOME/.ec2/pk-*.pem | /usr/bin/head -1) + set -gx EC2_PRIVATE_KEY (/bin/ls $HOME/.ec2/pk-*.pem | /usr/bin/head -1) +end + +if test (/bin/ls $HOME/.ec2/cert-*.pem | /usr/bin/head -1) + set -gx EC2_CERT (/bin/ls $HOME/.ec2/cert-*.pem | /usr/bin/head -1) +end + +if test -d /usr/local/Library/LinkedKegs/ec2-api-tools/jars + set -gx EC2_HOME /usr/local/Library/LinkedKegs/ec2-api-tools/jars +end +