recipiez 0.6.24 → 0.6.25

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.
@@ -1,3 +1,3 @@
1
1
  module Recipiez
2
- VERSION = '0.6.24'
2
+ VERSION = '0.6.25'
3
3
  end
data/recipes/logrotate.rb CHANGED
@@ -28,20 +28,14 @@ Capistrano::Configuration.instance(true).load do
28
28
  sudo "chmod 644 /etc/logrotate.d/#{application}"
29
29
  end
30
30
 
31
- desc "Move log directory to /mnt"
32
- task :move_log_dir_to_mnt do
33
- if Dir.exists?("/mnt/application_logs/#{application}")
34
- # do nothing
35
- puts "Doing nothing as the application log directory already exists in mount."
36
- else
31
+ desc "Move log directory to /mnt"
32
+ task :move_log_dir_to_mnt do
37
33
  sudo "mkdir -p /mnt/application_logs/#{application}"
38
34
  sudo "chown -R #{user}:#{user} /mnt/application_logs/#{application}"
39
35
  sudo "mv /var/www/apps/#{application}/shared/log/* /mnt/application_logs/#{application}"
40
36
  sudo "rm -fr /var/www/apps/#{application}/shared/log"
41
37
  sudo "ln -s /mnt/application_logs/#{application} /var/www/apps/#{application}/shared/log"
42
- # Now need to deploy the app.
43
38
  end
44
- end
45
39
 
46
40
  end
47
41
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 6
8
- - 24
9
- version: 0.6.24
8
+ - 25
9
+ version: 0.6.25
10
10
  platform: ruby
11
11
  authors:
12
12
  - Alastair Brunton
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2014-10-02 00:00:00 +02:00
17
+ date: 2014-10-03 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency