capistrano-alice 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,6 +33,7 @@ Capistrano::Configuration.instance(:must_exist).load do
33
33
 
34
34
  before "deploy:update_code", "alice:maintenance:on"
35
35
  before "deploy:update_code", "alice:release:create"
36
+ after "deploy:update_code", "alice:release:procfile"
36
37
  after "deploy:restart", "alice:release:activate"
37
38
  after "deploy:restart", "alice:maintenance:off"
38
39
  end
@@ -122,6 +122,14 @@ Capistrano::Configuration.instance(:must_exist).load do
122
122
  alice_release.activate!
123
123
  end
124
124
 
125
+ task :procfile, :except => { :no_release => true } do
126
+ procfile = alice_release.processes.map do |name, command|
127
+ "#{name}: #{command}"
128
+ end.join("\n")
129
+
130
+ put(procfile, "#{current_release}/Procfile", mode: 0644)
131
+ end
132
+
125
133
  namespace :_create do
126
134
 
127
135
  task :collect_servers, :except => { :no_release => true } do
@@ -145,6 +153,8 @@ Capistrano::Configuration.instance(:must_exist).load do
145
153
  processes[name] = command
146
154
  end
147
155
 
156
+ processes.merge! fetch(:alice_processes, {})
157
+
148
158
  if processes.empty?
149
159
  abort "[ALICE]: Empty or invalid Procfile!"
150
160
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Alice
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-alice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-27 00:00:00.000000000 Z
12
+ date: 2012-06-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: yajl-ruby
16
- requirement: &2282065640 !ruby/object:Gem::Requirement
16
+ requirement: &70207046473100 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2282065640
24
+ version_requirements: *70207046473100
25
25
  description: This makes deploying apps to alice/pluto much easier.
26
26
  email:
27
27
  - simon.menke@gmail.com
@@ -53,7 +53,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
53
53
  version: '0'
54
54
  segments:
55
55
  - 0
56
- hash: -1937343778762510174
56
+ hash: -2218694777923017974
57
57
  required_rubygems_version: !ruby/object:Gem::Requirement
58
58
  none: false
59
59
  requirements:
@@ -62,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
62
  version: '0'
63
63
  segments:
64
64
  - 0
65
- hash: -1937343778762510174
65
+ hash: -2218694777923017974
66
66
  requirements: []
67
67
  rubyforge_project: capistrano-alice
68
68
  rubygems_version: 1.8.11