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
# you'd obviously have more settings somewhere | |
set :scm, :git | |
set :repository, "git@github.com:defunkt/github.git" | |
set :branch, "origin/master" | |
set :migrate_target, :current | |
set(:latest_release) { fetch(:current_path) } | |
set(:release_path) { fetch(:current_path) } | |
set(:current_release) { fetch(:current_path) } |
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
## from libcloud.types import Provider | |
## from libcloud.providers import get_driver | |
require 'fog/types' | |
require 'fog/providers' | |
## EC2 = get_driver(Provider.EC2) | |
## Slicehost = get_driver(Provider.SLICEHOST) | |
## Rackspace = get_driver(Provider.RACKSPACE) | |
EC2 = Fog::Provider.new(:ec2) # syntax 1 |
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 | |
def parse_missing_required(input) | |
matches = input.match(/Missing these required gems:([\s\S]*)You're running:/) | |
matches[1].strip.split("\n").map do |line| | |
m = line.match(/^\s*(\S+)\s+(\S+\s+[0-9.]+)/) | |
p line if m.nil? | |
{:name => m[1], :version => m[2]} | |
end | |
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
# Gemfile | |
gem "cc-wordpress", "0.5.0", :git => "file:///usr/src/cc-wordpress", | |
:tag => "default" |
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
# install_chef_server.sh | |
# | |
# From list post by John Merrells <john@merrells.com> | |
# Modified by Mike Bailey <mike@bailey.net.au> | |
logfile="/root/log.txt" | |
echo "-----" >> $logfile | |
# New sources.list | |
cat > /etc/apt/sources.list << EOF |
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
# Background: | |
# @repo = Grit::Repo.new(@active_project_folder) | |
When /^the repository status is clean$/ do | |
steps %Q{ | |
Then no files are untracked | |
And no files are changed | |
And no files are added | |
And no files are deleted | |
} | |
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
name "base" | |
description "Base role applied to all nodes." | |
run_list( | |
"recipe[apt]", | |
"recipe[git]", | |
"recipe[build-essential]", | |
"recipe[ruby]" | |
) |
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
name "base" | |
description "Base role applied to all nodes." | |
run_list( | |
"recipe[cc-apt-0cb9519bf687]", | |
"recipe[cc-git-730475fa9847]", | |
"recipe[cc-build-essential-b458e6200289]", | |
"recipe[cc-ruby-e42796a7e807]" | |
) |
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
$ bundle install --gemfile /path/to/rails-quick-start.gemfile \ | |
--install-path /path/to/rails-quick-start/cookbooks | |
$ ls /path/to/rails-quick-start/cookbooks | |
cache cc-packages-35e85e0ab6b2 | |
cc-apache2-490a410a8a38 cc-passenger_apache2-ef5688ef1e51 | |
cc-application-144f665d1e52 cc-passenger_enterprise-ce23f03ac342 | |
cc-apt-0cb9519bf687 cc-radiant-38c2de357868 | |
cc-aws-502ce059e3e2 cc-rails-564b986e7bd7 | |
cc-build-essential-b458e6200289 cc-ruby-e42796a7e807 |
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
$ cd /tmp | |
$ wget --no-check-certificate -o qa-latest.tgz https://github.com/cookbooks/cc-activemq/tarball/qa-latest |
OlderNewer