cevian-chef-deploy 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,10 +29,11 @@ class CachedDeploy
29
29
 
30
30
  chef_run("chown -R #{user}:#{group} #{@configuration[:deploy_to]}")
31
31
 
32
- callback(:before_migrate)
33
- migrate
32
+
34
33
  callback(:before_symlink)
35
34
  symlink
35
+ callback(:before_migrate)
36
+ migrate
36
37
  callback(:before_restart)
37
38
  restart
38
39
  callback(:after_restart)
@@ -2,36 +2,7 @@ class ChefDeploySymfonyFailure < ChefDeployFailure
2
2
  end
3
3
 
4
4
  class CachedDeploySymfony < CachedDeploy
5
- # Executes the SCM command for this strategy and writes the REVISION
6
- # mark file to each host.
7
- def deploy
8
- @configuration[:release_path] = "#{@configuration[:deploy_to]}/releases/#{Time.now.utc.strftime("%Y%m%d%H%M%S")}"
9
- if @configuration[:revision] == ''
10
- @configuration[:revision] = source.query_revision(@configuration[:branch]) {|cmd| run_with_result "#{cmd}"}
11
- end
12
-
13
- Chef::Log.info "ensuring proper ownership"
14
- chef_run("chown -R #{user}:#{group} #{@configuration[:deploy_to]}")
15
-
16
- Chef::Log.info "deploying branch: #{@configuration[:branch]} rev: #{@configuration[:revision]}"
17
- Chef::Log.info "updating the cached checkout"
18
- chef_run(update_repository_cache)
19
- Chef::Log.info "copying the cached version to #{release_path}"
20
- chef_run(copy_repository_cache)
21
- install_gems
22
-
23
- chef_run("chown -R #{user}:#{group} #{@configuration[:deploy_to]}")
24
-
25
- callback(:before_migrate)
26
- migrate
27
- callback(:before_symlink)
28
- symlink
29
- callback(:before_restart)
30
- restart
31
- callback(:after_restart)
32
- cleanup
33
- end
34
-
5
+
35
6
  def symlink(release_to_link=latest_release)
36
7
  Chef::Log.info "symlinking and finishing deploy"
37
8
  symlink = false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cevian-chef-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezra Zygmuntowicz