capistrano-unformatt 1.11 → 1.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d1a1b925d09eb7c78438ee6e44beddd3f0f6ecf
4
- data.tar.gz: 9d7e440fbac0d3344b682c23b16155ea5b42a53a
3
+ metadata.gz: 62db3552bb91176d87116f24390e209bc3af98d4
4
+ data.tar.gz: 94990c22a0be6d11cec874fdcf5969d3a7504bc1
5
5
  SHA512:
6
- metadata.gz: eb0591c9beeccfecd209d39ef6c7fdf7f78fc81b0f487802370f4cc6f6a4c3b5503413b8e691ce0ee3e5858f54915d903d14755e28032b8d065549891860aaa8
7
- data.tar.gz: 1f8488c08c89a9c7c864c55a1b1dd96feee0d1e1ced8337da34800bc9ae8460a51f4935a597f68065a73934a7b80f7ccc6a1a41aa682537663e720a768550172
6
+ metadata.gz: 4327260c468915b5f44e6c04e60b4e481c8aab7e27ff70404522d4a7012e1697e9dbb2b002b58f04b50449a771c6d26e52d38998c40c1a107894866fe1487d99
7
+ data.tar.gz: 4f16b58a250f1b8c96858c517d89d1e28e84bbefb587e11fb7770033050fc58d04876f3bde1c76ad9826d96bb6176cf476a6bc5e385f90fa9c91c4aa5b49af30
data/CHANGELOG.md CHANGED
@@ -69,3 +69,7 @@
69
69
  ## v1.11
70
70
 
71
71
  * Improved configuration for nginx
72
+
73
+ ## v1.12
74
+
75
+ * Replaced present method not working on strings
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "capistrano-unformatt"
7
- spec.version = '1.11'
7
+ spec.version = '1.12'
8
8
  spec.authors = ["unformatt"]
9
9
  spec.email = ["unformatt@gmail.com"]
10
10
  spec.description = "Custom recipes for Unformatt projects"
@@ -9,7 +9,7 @@ namespace :deploy do
9
9
 
10
10
  desc "Starts applications"
11
11
  task :start do
12
- if ENV['DAEMONS'].present?
12
+ if ENV['DAEMONS'].to_s != ''
13
13
  on roles :app do
14
14
  ENV['DAEMONS'].split(',').each do |daemon|
15
15
  execute "sudo monit start #{fetch(:application)}-#{daemon}"
@@ -22,7 +22,7 @@ namespace :deploy do
22
22
 
23
23
  desc "Stops applications"
24
24
  task :stop do
25
- if ENV['DAEMONS'].present?
25
+ if ENV['DAEMONS'].to_s != ''
26
26
  on roles :app do
27
27
  ENV['DAEMONS'].split(',').each do |daemon|
28
28
  execute "sudo monit stop #{fetch(:application)}-#{daemon}"
@@ -35,7 +35,7 @@ namespace :deploy do
35
35
 
36
36
  desc "Restarts applications"
37
37
  task :restart do
38
- if ENV['DAEMONS'].present?
38
+ if ENV['DAEMONS'].to_s != ''
39
39
  on roles :app do
40
40
  ENV['DAEMONS'].split(',').each do |daemon|
41
41
  execute "sudo monit restart #{fetch(:application)}-#{daemon}"
@@ -48,7 +48,7 @@ namespace :deploy do
48
48
 
49
49
  desc "Starts monitoring applications"
50
50
  task :monitor do
51
- if ENV['DAEMONS'].present?
51
+ if ENV['DAEMONS'].to_s != ''
52
52
  on roles :app do
53
53
  ENV['DAEMONS'].split(',').each do |daemon|
54
54
  execute "sudo monit monitor #{fetch(:application)}-#{daemon}"
@@ -61,7 +61,7 @@ namespace :deploy do
61
61
 
62
62
  desc "Stops monitoring applications"
63
63
  task :unmonitor do
64
- if ENV['DAEMONS'].present?
64
+ if ENV['DAEMONS'].to_s != ''
65
65
  on roles :app do
66
66
  ENV['DAEMONS'].split(',').each do |daemon|
67
67
  execute "sudo monit unmonitor #{fetch(:application)}-#{daemon}"
@@ -69,7 +69,7 @@ server {
69
69
  ssl_session_cache shared:SSL:10m;
70
70
  ssl_session_timeout 5m;
71
71
  ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
72
- <%- if fetch(:nginx_ssl_ciphers,'').present? -%>
72
+ <%- if fetch(:nginx_ssl_ciphers,'') != '' -%>
73
73
  ssl_ciphers "<%= fetch(:nginx_ssl_ciphers) %>";
74
74
  ssl_prefer_server_ciphers on;
75
75
  ssl_dhparam <%= fetch(:nginx_dhparams_path, '/etc/ssl/private/dhparams.pem') %>;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-unformatt
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.11'
4
+ version: '1.12'
5
5
  platform: ruby
6
6
  authors:
7
7
  - unformatt