Collection of Capistrano recipes for deployment and server tasks
Ruby HTML
Permalink
Failed to load latest commit information.
example Remove name-spacing of lib. Change key names in config file to be mor… Jun 28, 2010
files Add assets recipe Aug 1, 2014
lib
test
.document Initial commit to thunder_punch. Feb 21, 2010
.gitignore Ignore *.gem (gem build foo.gemspec place foo.gem in root directory) Mar 7, 2010
CHANGELOG.mdown Fix dotenv honeybadger task and add usage note Sep 17, 2015
Gemfile Add for development. Update rake file to fix obsolete code Jan 7, 2015
Gemfile.lock
MIT-LICENSE We now have a new name - Critical Juncture. Mar 9, 2010
Manifest Initial setup of gem Feb 21, 2010
README.mdown Add assets recipe Aug 1, 2014
Rakefile Add for development. Update rake file to fix obsolete code Jan 7, 2015
TODO.mdown
VERSION Version bump to 0.1.6 Sep 17, 2015
thunder_punch.gemspec Regenerate gemspec for version 0.1.6 Sep 17, 2015

README.mdown

Thunder Punch

Collection of Capistrano recipes for deployment and other server tasks.

NOTE: Version 0.1.0 represents a breaking change from 0.0.14 and below. See CHANGELOG for details.

Requirements

  • Capistrano >=2.5.5 (not compatible with Capistrano 3)

Installation

  • In Gemfile
  gem 'capistrano', '~> 2.15.5'
  gem 'thunder_punch', '~> 0.1.0'
end

Simple setup

  • In config/deploy.rb
  # deploy recipes - these should be required at the very bottom of deploy.rb
  require 'thunder_punch'
  # optional recipes that you want to make use of go here...
  require 'thunder_punch/recipes/passenger'
  require 'thunder_punch/recipes/thinking_sphinx'

Complex setup

TODO

Assets recipe

  • In order to use the assets recipes you'll need to copy the two files in files/assets into their appropriate places. See the comments at the top of each file for where to place them.
  • Once the files are copied you can use assets:precompile_if_needed for fast deploys that only precompile assets when it's neccessary.

Reasoning

By creating a central and organized system for our tasks we can reduce the content in our deploy.rb files to be project specific and make the addition of new tasks easy and compatible.

Name Origin

"Thunder Punch" was a version of the He-Man action figure from the original 1980s Masters of the Universe toy line. Ring caps were placed in a "backpack" integrated into the figure, which contained the striking mechanism for the caps (as well as tiny vents to allow smoke from a triggered cap to escape). This mechanism was triggered by drawing the figure's spring-loaded right arm back and releasing it to swing forward; the explosion of the cap was intended to simulate a thunderous noise caused by the supposed superhuman power of the character's punch. [via wikipedia]

Because this collection of recipes is for Capistrano and run with the cap command - this seemed a good name, sans the thunderous noise of course (this was found to be disrupting in work environments and cafes).

License

Copyright (c) 2010-2014 Critical Juncture, released under the MIT license