capistrano-hivequeen 6.0.4 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -40,6 +40,7 @@ Gem::Specification.new do |s|
40
40
  s.add_dependency('capistrano', '>= 2.11.0')
41
41
  s.add_dependency('activesupport', '>= 3.0.0')
42
42
  s.add_dependency('json')
43
+ s.add_dependency('egads', '>= 3.0.0')
43
44
  s.add_dependency('excon', '>= 0.6.0') # Perhaps we can support older. Haven't checked.
44
45
 
45
46
  ## List your development dependencies here. Development dependencies are
@@ -106,5 +106,4 @@ Capistrano::Configuration.instance(:must_exist).load do
106
106
  require 'capistrano/hivequeen/setup'
107
107
  require 'capistrano/hivequeen/deploy'
108
108
 
109
-
110
109
  end
@@ -1,5 +1,9 @@
1
1
  Capistrano::Configuration.instance.load do
2
2
 
3
+ # Redefine real_revision
4
+ # real_revision is a legacy name from the default capistrano recipes
5
+ set(:real_revision) { full_sha }
6
+
3
7
  before "deploy:stage", "hivequeen:start"
4
8
  before 'hivequeen:start', 'hivequeen:check_commit'
5
9
  on :start, "hivequeen:require_environment", :except => HiveQueen.environment_names
@@ -105,6 +109,11 @@ Capistrano::Configuration.instance.load do
105
109
  task :cold do
106
110
  # Nothing. Use :cold task below
107
111
  end
112
+
113
+ desc "restarts all rails services concurrently"
114
+ task :restart do
115
+ run "if [ -x /etc/init.d/rails_services ]; then /etc/init.d/rails_services upgrade; fi"
116
+ end
108
117
  end
109
118
 
110
119
  desc "Deploy for the first time. Runs setup and deploy:migrations"
@@ -1,6 +1,6 @@
1
1
  class HiveQueen
2
2
  class Version
3
- @@version = '6.0.4'
3
+ @@version = '7.0.0'
4
4
 
5
5
  def self.to_s
6
6
  @@version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-hivequeen
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.4
4
+ version: 7.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-06 00:00:00.000000000 Z
12
+ date: 2013-09-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -45,16 +45,27 @@ dependencies:
45
45
  prerelease: false
46
46
  version_requirements: *3
47
47
  - !ruby/object:Gem::Dependency
48
- name: excon
48
+ name: egads
49
49
  requirement: &4 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - '>='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.6.0
54
+ version: 3.0.0
55
55
  type: :runtime
56
56
  prerelease: false
57
57
  version_requirements: *4
58
+ - !ruby/object:Gem::Dependency
59
+ name: excon
60
+ requirement: &5 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - '>='
64
+ - !ruby/object:Gem::Version
65
+ version: 0.6.0
66
+ type: :runtime
67
+ prerelease: false
68
+ version_requirements: *5
58
69
  description: Capistrano extensions for interacting with HiveQueen
59
70
  email: aaron@kickstarter.com
60
71
  executables: []
@@ -68,8 +79,6 @@ files:
68
79
  - lib/capistrano/hivequeen.rb
69
80
  - lib/capistrano/hivequeen/capistrano_configuration.rb
70
81
  - lib/capistrano/hivequeen/deploy.rb
71
- - lib/capistrano/hivequeen/egads.rb
72
- - lib/capistrano/hivequeen/legacy_deploy.rb
73
82
  - lib/capistrano/hivequeen/multiio.rb
74
83
  - lib/capistrano/hivequeen/setup.rb
75
84
  - lib/capistrano/hivequeen/version.rb
@@ -1,15 +0,0 @@
1
- # Don't load this if legacy_deploy is loaded
2
- # Can be moved into capistrano/hivequeen/deploy.rb
3
- # after legacy stuff is removed
4
- Capistrano::Configuration.instance.load do
5
-
6
- # Redefine real_revision
7
- set(:real_revision) { full_sha }
8
-
9
- namespace :deploy do
10
- desc "restarts all rails services concurrently"
11
- task :restart do
12
- run "if [ -x /etc/init.d/rails_services ]; then /etc/init.d/rails_services upgrade; fi"
13
- end
14
- end
15
- end
@@ -1,48 +0,0 @@
1
- Capistrano::Configuration.instance(:must_exist).load do
2
- # Require bundler extensions
3
- require 'bundler/capistrano'
4
-
5
- # Default to using the current branch as the stage name
6
- # NB: current branch may not be set
7
- #current_branch = `git symbolic-ref HEAD`.chomp.sub('refs/heads/', '')
8
-
9
- set :scm, :git
10
- set :deploy_via, :remote_cache
11
-
12
- # If a delayed_job worker doesn't stop/restart in time (probably b/c a slow job is running)
13
- # trust that runit will eventually stop/restart the worker
14
- set :tolerate_slow_bg, true
15
-
16
- # Option to skip background tasks
17
- set :skip_bg, false
18
-
19
- # Don't mess with timestamps
20
- set :normalize_asset_timestamps, false
21
- # Don't mess with permissions
22
- set :group_writable, false
23
- set :use_sudo, false
24
-
25
- # Symlink shared config files
26
- after "deploy:update_code", "deploy:symlink_shared_config"
27
- namespace :deploy do
28
- desc "[internal] Symlink shared config files to current release"
29
- task :symlink_shared_config do
30
- run "ln -nfs #{shared_path}/config/* #{latest_release}/config"
31
- end
32
- end
33
-
34
- before "deploy:update_code", "hivequeen:start"
35
-
36
- # Keep all but the 5 most recent releases
37
- set :keep_releases, 5
38
- after "deploy", "deploy:cleanup"
39
-
40
- after "deploy:restart", "deploy:restart_rails_services"
41
- namespace :deploy do
42
- desc "restarts all rails services concurrently"
43
- task :restart_rails_services, :roles => [:app, :bg, :resque] do
44
- run "/etc/init.d/rails_services upgrade"
45
- end
46
- end
47
-
48
- end