This file contains hidden or 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
require 'minitest/spec' | |
module MiniTest | |
module Rails | |
class Spec < MiniTest::Spec | |
alias :method_name :__name__ | |
alias :pending :skip | |
class << self | |
def xit(desc='anonymous') | |
it(name) { skip 'DISABLED' } |
This file contains hidden or 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
# <tech> is roflscale | |
responses = [ | |
"Have you thought about trying %?" | |
"The only way to scale is %." | |
"Why not just use %?" | |
"What about using %?" | |
"I heard % can handle that just fine." | |
] |
This file contains hidden or 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
if ['app_master', 'app'].include?(node[:instance_role]) | |
node[:applications].each do |app, data| | |
template "/data/#{app}/shared/config/redis.yml"do | |
source 'redis.yml.erb' | |
owner node[:owner_name] | |
group node[:owner_name] | |
mode 0655 | |
backup 0 | |
variables({ | |
:environment => node[:environment][:framework_env], |
This file contains hidden or 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
group :development do | |
gem 'execjslint', require: false | |
end |
This file contains hidden or 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
source :rubygems | |
gem 'rails', '3.1.3' # depends on rack 1.3.x | |
gem 'rack', '1.4.1' |
This file contains hidden or 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
require File.expand_path('../config/application', __FILE__) | |
require 'rake' | |
My::Application.load_tasks | |
namespace :test do | |
Rake::TestTask.new(:combined) do |t| | |
t.libs << 'test' | |
t.pattern = "test/**/*_test.rb" | |
end |
This file contains hidden or 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
NAME=redis | |
PACKAGE_NAME=$(NAME)-server | |
VERSION=2.6.4 | |
DOWNLOAD=http://redis.googlecode.com/files/redis-$(VERSION).tar.gz | |
TARBALL=$(NAME)-$(VERSION).tar.gz | |
TARDIR=$(NAME)-$(VERSION) | |
BUILD=$(PWD)/build | |
.PHONY: default |
This file contains hidden or 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
NAME=collectd | |
VERSION=5.4.0 | |
IDENTIFIER=tc1 | |
TAR=collectd-$(VERSION).tar.gz | |
DIR=collectd-$(VERSION) | |
FAKEROOT=$(PWD)/fakeroot | |
all: clean dependencies build install package | |
clean: |
This file contains hidden or 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
#!/bin/bash -ex | |
which curl || sudo apt-get install -y curl | |
which ruby || sudo apt-get install -y ruby1.9.1 | |
which mkmf || sudo apt-get install -y ruby1.9.1-dev | |
which fpm || sudo gem install fpm | |
export GOROOT=$PWD/go | |
export PATH=$PATH:$GOROOT/bin | |
[ -d go ] || curl https://go.googlecode.com/files/go1.1.2.linux-amd64.tar.gz | tar xz | |
if [ ! -d lumberjack ] ; then |
This file contains hidden or 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
require 'formula' | |
class Rbenv < Formula | |
homepage 'https://github.com/sstephenson/rbenv' | |
url 'https://github.com/sstephenson/rbenv/archive/v0.4.0.tar.gz' | |
sha1 '825ceec55805b8bb80a6d6003fd3cef824d7ff14' | |
head 'https://github.com/sstephenson/rbenv.git' | |
def install |