Skip to content

Instantly share code, notes, and snippets.

@fishman
fishman / ansible-role-test.sh
Created July 14, 2018 13:49 — forked from nickjj/ansible-role-test.sh
Ansible Role Test Shim Script
#!/bin/bash
#
# Ansible role test shim.
#
# Taken from this gist by Jeff Geerling on May 10th 2018:
# https://gist.github.com/geerlingguy/73ef1e5ee45d8694570f334be385e181
#
# Usage: [OPTIONS] ./tests/test.sh
# - distro: a supported Docker distro version (default = "ubuntu1804")
# - playbook: a playbook in the tests directory (default = "test.yml")
@fishman
fishman / ansible-role-test.sh
Created July 14, 2018 13:47 — forked from geerlingguy/ansible-role-test.sh
Ansible Role Test Shim Script
#!/bin/bash
#
# Ansible role test shim.
#
# Usage: [OPTIONS] ./tests/test.sh
# - distro: a supported Docker distro version (default = "centos7")
# - playbook: a playbook in the tests directory (default = "test.yml")
# - role_dir: the directory where the role exists (default = $PWD)
# - cleanup: whether to remove the Docker container (default = true)
# - container_id: the --name to set for the container (default = timestamp)
source :rubygems
gem 'rake'
gem 'rack'
gem 'rack-rewrite'
gem 'thin'
gem 'sprockets', '2.2.0'
gem 'sass'
gem 'coffee-script'
@fishman
fishman / Gemfile
Created September 13, 2012 16:03
Rails Lightweight Stack. Most of this is detailed on Crafting Rails Applications - http://pragprog.com/book/jvrails/crafting-rails-applications
source :rubygems
# We are not loading Active Record, nor Active Resources etc.
# We can do this in any app by simply replacing the rails gem
# by the parts we want to use.
gem "actionpack", "~> 3.2"
gem "railties", "~> 3.2"
gem "tzinfo"
# Let's use thin
@fishman
fishman / gist:2408495
Created April 17, 2012 19:36 — forked from shripadk/gist:652819
Express authentication using Redis for session store and Couchdb for database (in coffeescript!)
###
Module dependencies
###
require.paths.unshift "#{__dirname}/lib/support/express-csrf/"
require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/"
express = require 'express'
app = module.exports = express.createServer()
RedisStore = require 'connect-redis'