One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
class CursorPaginator | |
attr_reader :cursor_keys, :max_items, :limit | |
CURSOR_DIRECTIONS = { | |
after: :gt, | |
before: :lt | |
}.freeze | |
def initialize(options = {}) | |
@cursor_keys = options.fetch(:cursor_keys, id: :asc) |
set -xe | |
EB_SCRIPT_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k script_dir) | |
. $EB_SCRIPT_DIR/use-app-ruby.sh | |
gem update --system |
<Response> | |
<Say voice="alice">Thanks for trying our documentation. Enjoy!</Say> | |
<Play>https://demo.twilio.com/docs/classic.mp3</Play> | |
</Response> |
#!/usr/bin/env bash | |
# | |
# Rails console script that can be run on AWS Elastic Beanstalk. | |
# | |
# Run this script from the app dir (/var/app/current) as root (sudo script/aws-console) | |
# | |
set -xe | |
EB_SCRIPT_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k script_dir) |
# Compile source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
class FacebookCommentNotifer | |
def initialize(comment) | |
@comment = comment | |
end | |
def save | |
@comment.save && post_to_wall | |
end | |
private |
#!/usr/bin/env ruby | |
# Heroku enviroment helper script | |
# | |
# This is to streamline using differnt heroku enviroments from one repo. | |
# Symlink this file to an envroment name (as set by the git-remote name), then | |
# when running that symlink the script will look up the name in the git config | |
# and use that remote as the heroku name. | |
# | |
# Setup: |