Skip to content

Instantly share code, notes, and snippets.

@aussielunix
Last active December 14, 2015 04:09
Show Gist options
  • Save aussielunix/5026478 to your computer and use it in GitHub Desktop.
Save aussielunix/5026478 to your computer and use it in GitHub Desktop.
consuming cap tasks from ruby proper
require 'capistrano/cli'
config = ::Capistrano::Configuration.new
# This loads up the tasks into the current scope
#
config.load 'tasks/foo.rb'
# run task 'foo'
#
config.foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment