Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'reorg' of github.com:nzoschke/ferret into pr/1
- Loading branch information
Showing
36 changed files
with
575 additions
and
196 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.anvil/ | ||
.env | ||
tmp/ |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
app/* | ||
tmp/ |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1 @@ | ||
exec_converge: bin/loop test/exec_converge | ||
exec_run: bin/loop test/exec_run | ||
git_clone: bin/loop test/git_clone | ||
git_clone_bamboo: bin/loop test/git_clone_bamboo | ||
git_clone_elb: bin/loop test/git_clone_elb | ||
librato: bin/loop test/librato | ||
perf_cpu: bin/loop test/perf_cpu | ||
perf_disk: bin/loop test/perf_disk | ||
perf_network: bin/loop test/perf_network | ||
ssh_fingerprint: bin/loop test/ssh_fingerprint | ||
ssh_path: bin/loop test/ssh_path | ||
ssh_tcp_receive: bin/loop test/ssh_tcp_receive | ||
tester: tests/http_recurl |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env rake | ||
|
||
require "rake/testtask" | ||
|
||
task default: :test | ||
|
||
Rake::TestTask.new :test do |t| | ||
t.pattern = "./tests/unit/test_*.rb" | ||
end |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
L2MET_URL=https://drain.l2met.net/consumers/6f65d7cc-5443-4a99-9545-8bec7a301941/logs | ||
TARGET_APP_PATH=$1 | ||
APP=$(whoami) | ||
ORG=ferret-dev | ||
UNPRIVILEGED_USER=heroku.ferret.dev@gmail.com | ||
TARGET_APP_NAME=$(echo $TARGET_APP_PATH | sed 's:[/._]:-:g') | ||
APP=$APP-$TARGET_APP_NAME | ||
echo "Setting up ${TARGET_APP_NAME} from path ${TARGET_APP_PATH}" | ||
echo "Cleaning Procfile" | ||
#cleanup procfile so that we can make the target app the tester proc | ||
rm Procfile | ||
touch Procfile | ||
echo "tester: ${TARGET_APP_PATH}" >> Procfile | ||
|
||
echo "Getting unprivileged api key from ${UNPRIVILEGED_USER}" | ||
#someday we get to use oauth tokens instead of this hack | ||
UNPRIVILEGED_HEROKU_API_KEY=$(heroku sudo user:info -x \ | ||
--user ${UNPRIVILEGED_USER} \ | ||
| awk '/Api Key:/ {print $3;}' \ | ||
| head -1) | ||
echo "Cleaning up old deploy of $APP" | ||
|
||
heroku sudo --user ${UNPRIVILEGED_USER} apps:delete $APP --confirm $APP | ||
|
||
|
||
heroku apps:create $APP | ||
heroku manager:transfer --to $ORG --app ${APP} | ||
heroku config:set --app ${APP} \ | ||
APP=$APP \ | ||
HEROKU_API_KEY=$UNPRIVILEGED_HEROKU_API_KEY \ | ||
APP_PREFIX=ferret-$(whoami) \ | ||
ORG=$ORG | ||
heroku build -b https://github.com/nzoschke/buildpack-ferret.git -r $APP | ||
heroku scale tester=1 --app ${APP} | ||
heroku drains:add --app ${APP} ${L2MET_URL} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
APP=ferretapp | ||
GMAIL_USER=heroku.ferret@gmail.com:deadbeef84c277fa | ||
HEROKU_API_KEY=deadbeef87a9b10d49ab5036216c41b7f8cc3633 | ||
LIBRATO_API_URL=https://heroku.ferret%40gmail.com:deadbeef01baaa502bd80fcc1039ff6cd2eee2f6@metrics-api.librato.com/ | ||
APP_PREFIX=ferret-fode | ||
ORG=ferret-dev |
Oops, something went wrong.