california 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed1f0d567e2dfa5248a65ba6f83cc97fe8b3458e
4
- data.tar.gz: 4fdb39f71546ba78c96be74c4a3973ce4e4a5562
3
+ metadata.gz: 819f6ff42a652f3db100f9161373397a541e2968
4
+ data.tar.gz: 16dda451232ec2f5613cdcd9d62ca37aecde6961
5
5
  SHA512:
6
- metadata.gz: d9fe15b9104920427709137dcdac0b3ee78ae96cba8a1bfeed76f1b2b7f43179ac148dc72239a357bf373b7080cc4b005cd045a3ef6354335eecad5b8ab62dd8
7
- data.tar.gz: 27e1cc27c1200263ca6bf18d68974e9ec101f8a258bb6eea2df914ea403aa2e990986b226f1c8aca1534993981d5d3e65f79f45ccd82274aa763bfd14b4e6874
6
+ metadata.gz: 597a8f2cc42c8fc515014a94aa49879ee61a18d123a16ba1de9d24a2969b4bf1af8e2d29e1eb8a0bfc0f94807119d02a16610c18bf134bcce69d184020a971a3
7
+ data.tar.gz: d8915051856c443622c711e98604d83b2a898f9315e4e620b992210a234f57afccc7bdf7007b235be9a1aadf8c6f728ec49edf719a90d29ad856c3986511e96f
@@ -82,23 +82,24 @@ namespace :deploy do
82
82
  task :publishing do
83
83
  if fetch(:skip_restart)
84
84
  logger.info 'Skipping Restart...'
85
- else
86
85
 
86
+ elsif fetch(:restart_strategy) == 'restart.txt'
87
+ logger.info 'Restarting the app via restart.txt...'
87
88
  on roles :app do
88
89
  as fetch(:application) do
89
-
90
- if fetch(:restart_strategy) == 'restart.txt'
91
- logger.info 'Restarting the app via restart.txt...'
92
- within File.join(fetch(:deploy_to), 'tmp') do
93
- execute :touch, 'restart.txt'
94
- end
95
-
96
- else
97
- logger.info 'Restarting the app via passenger-config...'
98
- execute 'passenger-config', 'restart-app', fetch(:deploy_to)
90
+ within File.join(fetch(:deploy_to), 'tmp') do
91
+ execute :touch, 'restart.txt'
99
92
  end
100
93
  end
101
94
  end
95
+
96
+ else
97
+ logger.info 'Restarting app on web servers via passenger-config...'
98
+ on roles :web_server do
99
+ as fetch(:application) do
100
+ execute 'passenger-config', 'restart-app', fetch(:deploy_to)
101
+ end
102
+ end
102
103
  end
103
104
  end
104
105
 
@@ -27,4 +27,4 @@ load 'california/stage'
27
27
  # Important: Now you need to define AT LEAST ONE server.
28
28
 
29
29
  # Example: The one with the role "migrator" will be entitled to run migrations:
30
- # server '203.0.113.19', roles: %w{ all app web_server migrator }
30
+ # server '203.0.113.19', roles: %w[all app web_server migrator]
@@ -1,3 +1,3 @@
1
1
  module California
2
- VERSION = '1.0.1'.freeze
2
+ VERSION = '1.1.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: california
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - halo