Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
ddollar committed Sep 26, 2011
0 parents commit 410a527
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
@@ -0,0 +1,10 @@
# Hello Language Pack

The Hello Language Pack will look for a file named `hello.txt` in the app root and
display its contents during push.

## Usage

Add this language pack to your `LANGUAGE_PACK_URL`.

heroku config:add LANGUAGE_PACK_URL="http://github.com/heroku/language-pack-hello.git"
18 changes: 18 additions & 0 deletions bin/compile
@@ -0,0 +1,18 @@
#!/bin/sh

indent() {
sed -u 's/^/ /'
}

echo "-----> Found a hello.txt"

# if hello.txt has contents, display them (indented to align)
# otherwise error

if [ ! -s $1/hello.txt ]; then
echo "hello.txt was empty" | indent
exit 1
else
echo "hello.txt is not empty, here are the contents" | indent
cat $1/hello.txt | indent
fi
9 changes: 9 additions & 0 deletions bin/detect
@@ -0,0 +1,9 @@
#!/bin/sh

# this pack is valid for apps with a hello.txt in the root
if [ -f $1/hello.txt ]; then
echo "HelloFramework"
exit 0
else
exit 1
fi
11 changes: 11 additions & 0 deletions bin/release
@@ -0,0 +1,11 @@
#!/bin/sh

cat << EOF
---
addons:
- shared-database:5mb
config_vars:
PATH: bin:/usr/bin:/bin
default_process_types:
hello: cat hello.txt
EOF

0 comments on commit 410a527

Please sign in to comment.