nsweb_deployment 2.0.6 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,6 +7,9 @@ configuration = Capistrano::Configuration.respond_to?(:instance) ?
7
7
  Capistrano::Configuration.instance(:must_exist) :
8
8
  Capistrano.configuration(:must_exist)
9
9
 
10
+ def remote_file_exists?(filename)
11
+ capture("[ -f #{filename} ] || echo '1'").empty?
12
+ end
10
13
 
11
14
  configuration.load do
12
15
  set(:scm, :git)
@@ -59,7 +62,7 @@ configuration.load do
59
62
 
60
63
  namespace :assets do
61
64
  task :precompile, :roles => :web, :except => { :no_release => true } do
62
- from = source.next_revision(current_revision) if File.exists?(current_path)
65
+ from = source.next_revision(current_revision) if remote_file_exists?(File.join(current_path, 'REVISION'))
63
66
  if from.nil? || capture("cd #{latest_release} && #{source.local.log(from)} vendor/assets app/assets lib/assets | wc -l").to_i > 0
64
67
  run %Q{cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile}
65
68
  else
@@ -83,10 +86,5 @@ configuration.load do
83
86
 
84
87
  before 'customer_qa', 'nsweb:init_environment'
85
88
  before 'production', 'nsweb:init_environment'
86
- #before 'deploy:restart', 'delayed_job:stop'
87
- #after 'deploy:restart', 'delayed_job:start'
88
- #after 'deploy:stop', 'delayed_job:stop'
89
- #after 'deploy:start', 'delayed_job:start'
90
- #after 'deploy:symlink', 'nsweb:update'
91
89
  after 'deploy:symlink', 'deploy:cleanup'
92
90
  end
@@ -1,3 +1,3 @@
1
1
  module NswebDeployment
2
- VERSION = "2.0.6"
2
+ VERSION = "2.0.7"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: nsweb_deployment
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.0.6
5
+ version: 2.0.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Josh Williams
@@ -75,7 +75,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
75
75
  requirements:
76
76
  - - ">="
77
77
  - !ruby/object:Gem::Version
78
- hash: -885792333
78
+ hash: 762511123
79
79
  segments:
80
80
  - 0
81
81
  version: "0"
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  requirements:
85
85
  - - ">="
86
86
  - !ruby/object:Gem::Version
87
- hash: -885792333
87
+ hash: 762511123
88
88
  segments:
89
89
  - 0
90
90
  version: "0"