- run
user-data.sh
- run
install-ruby.sh
.
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
#!/usr/bin/env ruby | |
# | |
# This script generates RESTful scaffolds from your pre-existing models. | |
# Copyright 2008 Kyle Maxwell, available under the MIT licence. | |
# | |
require "rubygems" | |
require "active_support" | |
content = File.read(File.dirname(__FILE__) + "/db/schema.rb").split("create_table") |
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
#!/usr/bin/ruby | |
# This script installs to /usr/local only. To install elsewhere you can just | |
# untar https://github.com/mxcl/homebrew/tarball/master anywhere you like. | |
module Tty extend self | |
def blue; bold 34; end | |
def white; bold 39; end | |
def red; underline 31; end | |
def reset; escape 0; end | |
def bold n; escape "1;#{n}" 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
# bts: If I'm writing a plugin, I'd typically like to have a namespace to add | |
# my own classes, so I would skip this option: | |
# Qu.plugin(:autoretry) do |*errors| | |
# options = {:limit => 3}.merge!(errors.extract_options!) | |
# errors << Exception if errors.empty? | |
# before :failure do |job, e| | |
# if errors.any? {|error| error === e } | |
# job.data[:retries] += 1 |