Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore capistrano for deploys #73

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
source "http://rubygems.org"

gem "chef"
gem "drush-deploy"
gem "knife-solo"
gem "librarian"
gem "rake"
Expand Down
15 changes: 15 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ GEM
Platform (0.4.0)
archive-tar-minitar (0.5.2)
bunny (0.7.9)
capistrano (2.14.1)
highline
net-scp (>= 1.0.0)
net-sftp (>= 2.0.0)
net-ssh (>= 2.0.14)
net-ssh-gateway (>= 1.1.0)
chef (10.18.2)
bunny (>= 0.6.0, < 0.8.0)
erubis
Expand All @@ -25,6 +31,10 @@ GEM
childprocess (0.3.7)
ffi (~> 1.0, >= 1.0.6)
coderay (1.0.8)
drush-deploy (1.0.12)
capistrano (>= 2.12)
php_serialize (>= 1.2)
railsless-deploy (>= 1.0.2)
erubis (2.7.0)
ffi (1.3.1)
foodcritic (1.7.0)
Expand Down Expand Up @@ -65,6 +75,8 @@ GEM
moneta (0.6.0)
net-scp (1.0.4)
net-ssh (>= 1.99.1)
net-sftp (2.0.5)
net-ssh (>= 2.0.9)
net-ssh (2.2.2)
net-ssh-gateway (1.1.0)
net-ssh (>= 1.99.1)
Expand All @@ -81,6 +93,7 @@ GEM
systemu
yajl-ruby
open4 (1.3.0)
php_serialize (1.2)
polyglot (0.3.3)
popen4 (0.1.2)
Platform (>= 0.4.0)
Expand All @@ -89,6 +102,7 @@ GEM
coderay (~> 1.0.5)
method_source (~> 0.7.1)
slop (>= 2.4.4, < 3)
railsless-deploy (1.0.2)
rak (1.4)
rake (10.0.3)
rest-client (1.6.7)
Expand Down Expand Up @@ -131,6 +145,7 @@ PLATFORMS

DEPENDENCIES
chef
drush-deploy
foodcritic
knife-solo
librarian
Expand Down
14 changes: 14 additions & 0 deletions config/Capfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
require 'drush_deploy'

module UseScpForDeployment
def self.included(base)
base.send(:alias_method, :old_upload, :upload)
base.send(:alias_method, :upload, :new_upload)
end

def new_upload(from, to, options = {})
old_upload(from, to, options.merge!(:via => :scp))
end
end

Capistrano::Configuration.send(:include, UseScpForDeployment)