capistrano_recipes 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 122570754efd076c4abea7cf73802fefd22c5607
4
- data.tar.gz: 0556b85e858cba70703becfea75f6053aa057051
3
+ metadata.gz: 5ee75d10bd77f57e63cc7f8bbbe764b49d4d7382
4
+ data.tar.gz: 2435343b3609bc846e1b426402fccc2a52cfae07
5
5
  SHA512:
6
- metadata.gz: 213dff16815537617f6cf526fe132a316a1ae956841c35061fdcfb2550d78efa938696189f53c3796c195da42fe713acd0042c55f8dc26d80d418dc3b2d50918
7
- data.tar.gz: 6e77174d533b8998da024ca38713a771e6e695952e4e1ca0e8fe2217346a31e940a2f545cdb0fa60e67404d2974880fcaeb37de753d83137b564fffde526f7c4
6
+ metadata.gz: deb8913d76f06a3cc6c7f7da4b0a4dbe0abf2d66936ad2e517d17a220e39881b7324cb107b2aadc8bdb1a499b14362c6bac712bdffbbd60c1d04daa4b12c526f
7
+ data.tar.gz: bd2ec2fe3af982ac8d962426567c0f12f1e4c8a33b8e9e703d34b168b16091bc7d528547d0dae09afb8563f643f60331a12730e3a220338a5dd3310bbfa1f551
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'capistrano_recipes'
7
- s.version = '1.1.0'
7
+ s.version = '1.2.0'
8
8
  s.authors = ['Fernando Aleman']
9
9
  s.email = ['fernandoaleman@mac.com']
10
10
  s.description = 'Capistrano recipes to make your deployments fast and easy'
@@ -19,6 +19,6 @@ Gem::Specification.new do |s|
19
19
 
20
20
  s.add_dependency 'capistrano', '~> 2.12'
21
21
  s.add_dependency 'bundler', '~> 1.3'
22
-
22
+
23
23
  s.add_development_dependency 'rspec', '~> 2.5'
24
24
  end
@@ -2,15 +2,12 @@ module CapistranoRecipes
2
2
  module Git
3
3
  def self.load_into(configuration)
4
4
  configuration.load do
5
- default_run_options[:pty] = true
6
- ssh_options[:forward_agent] = true
7
-
8
5
  set(:repository) { abort "Please specify repository, set :repository, 'foo'" }
9
-
6
+
10
7
  _cset :branch, 'master'
11
8
  _cset :use_sudo, false
12
9
  _cset :check_repo, true
13
-
10
+
14
11
  set :migrate_target, :current
15
12
 
16
13
  set(:latest_release) { fetch(:current_path) }
@@ -20,11 +17,11 @@ module CapistranoRecipes
20
17
  set(:current_revision) { capture("cd #{current_path} && git rev-parse --short HEAD").strip }
21
18
  set(:latest_revision) { capture("cd #{current_path} && git rev-parse --short HEAD").strip }
22
19
  set(:previous_revision) { capture("cd #{current_path} && git rev-parse --short HEAD@{1}").strip }
23
-
20
+
24
21
  set :local_branch do
25
22
  `git symbolic-ref HEAD 2> /dev/null`.strip.sub('refs/heads/', '')
26
23
  end
27
-
24
+
28
25
  after 'deploy:setup' do
29
26
  begin
30
27
  run "git clone --no-checkout #{repository} #{current_path}"
@@ -35,7 +32,7 @@ module CapistranoRecipes
35
32
  end
36
33
  end
37
34
  end
38
-
35
+
39
36
  namespace :deploy do
40
37
  desc 'Deploy and start a cold application'
41
38
  task :cold do
@@ -56,7 +53,7 @@ module CapistranoRecipes
56
53
  run "cd #{current_path} && git fetch origin && git reset --hard origin/#{branch}"
57
54
  finalize_update
58
55
  end
59
-
56
+
60
57
  desc 'Run migrations'
61
58
  task :migrate, :roles => :db, :only => { :primary => true } do
62
59
  run "cd #{current_path} && RAILS_ENV=#{rails_env} #{rake} db:migrate"
@@ -110,12 +107,12 @@ module CapistranoRecipes
110
107
  %w[deploy deploy:cold deploy:migrations].each do |task|
111
108
  before "#{task}", "deploy:check_repo"
112
109
  end
113
-
110
+
114
111
  task :symlink do
115
112
  # nothing
116
113
  # if task is not being used, it will not appear in `cap -T`
117
114
  end
118
-
115
+
119
116
  task :create_symlink do
120
117
  # nothing
121
118
  # if task is not being used, it will not appear in `cap -T`
@@ -124,4 +121,4 @@ module CapistranoRecipes
124
121
  end
125
122
  end
126
123
  end
127
- end
124
+ end
@@ -17,6 +17,9 @@ module CapistranoRecipes
17
17
 
18
18
  set :user, 'deployer'
19
19
 
20
+ default_run_options[:pty] = true
21
+ ssh_options[:forward_agent] = true
22
+
20
23
  @used_recipes = []
21
24
 
22
25
  class << self
@@ -156,4 +159,4 @@ module CapistranoRecipes
156
159
 
157
160
  if Capistrano::Configuration.instance
158
161
  CapistranoRecipes.load_into(Capistrano::Configuration.instance)
159
- end
162
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano_recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernando Aleman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-25 00:00:00.000000000 Z
11
+ date: 2014-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  version: '0'
112
112
  requirements: []
113
113
  rubyforge_project:
114
- rubygems_version: 2.0.6
114
+ rubygems_version: 2.1.11
115
115
  signing_key:
116
116
  specification_version: 4
117
117
  summary: Capistrano deployment recipes