capistrano-buildpack 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,6 +22,12 @@ if Capistrano::Configuration.instance
22
22
 
23
23
  task :setup_env do
24
24
  set :deploy_to, "/apps/#{application}"
25
+ set :foreman_export_path, "/etc/init"
26
+ set :foreman_export_type, "upstart"
27
+ set :nginx_export_path, "/etc/nginx/conf.d"
28
+
29
+ set :buildpack_hash, Digest::SHA1.hexdigest(buildpack_url)
30
+ set :buildpack_path, "#{shared_path}/buildpack-#{buildpack_hash}"
25
31
 
26
32
  default_run_options[:pty] = true
27
33
  default_run_options[:shell] = '/bin/bash'
@@ -29,12 +35,6 @@ if Capistrano::Configuration.instance
29
35
 
30
36
  task :setup do
31
37
  setup_env
32
- set :foreman_export_path, "/etc/init"
33
- set :foreman_export_type, "upstart"
34
- set :nginx_export_path, "/etc/nginx/conf.d"
35
-
36
- set :buildpack_hash, Digest::SHA1.hexdigest(buildpack_url)
37
- set :buildpack_path, "#{shared_path}/buildpack-#{buildpack_hash}"
38
38
 
39
39
  sudo "mkdir -p #{deploy_to}"
40
40
  sudo "chown -R #{user} #{deploy_to}"
@@ -75,12 +75,7 @@ if Capistrano::Configuration.instance
75
75
  after "deploy:setup", "buildpack:install_foreman_export_nginx"
76
76
  before "deploy", "buildpack:setup"
77
77
  before "deploy:finalize_update", "buildpack:compile"
78
-
79
- namespace :deploy do
80
- task :restart do
81
- buildpack.foreman_export
82
- end
83
- end
78
+ after "deploy:create_symlink", "buildpack:foreman_export"
84
79
 
85
80
  task 'remote' do
86
81
  buildpack.setup_env
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Buildpack
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-buildpack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
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-01-02 00:00:00.000000000 Z
12
+ date: 2013-01-06 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Deploy 12-factor applications using Capistrano
15
15
  email: