oysters 1.0.1 → 1.0.2

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: 59e99c683f0b957629e07597e93878543ecb936d
4
- data.tar.gz: 983592b10683f9cf92aac6985aae905b3043256f
3
+ metadata.gz: e343f61b542b2a65c0ff4ce43dd48193f067ab47
4
+ data.tar.gz: 27438e12218629c900e5dfb5b66593ab68b3ade2
5
5
  SHA512:
6
- metadata.gz: fa5e6e6536f967a5731813d63d9c57d81d96eef0140b16a836403ad27e276b7b3800fb3dd111bd72c9f0270186c4bc514a18aef7c9e822083af75f8bc48e5435
7
- data.tar.gz: 0ad71968a46b74517c15bb0556536f5bd028b3c21049735c6445f2268539cc491b2076011a13ff72e08145accef9dbccaf98f20dfe7d1ce309deea056fee534d
6
+ metadata.gz: e991e520ae5d6b6c58edfb4affb6fe1549f551727deed9b646bc06e0084ecc0c1b493f67489c09af7133f1c6af82340b6e6828015f4f8c90e6f9c8b79a7abe7d
7
+ data.tar.gz: a7bf6bf47f548dd087fbe84065afda6f1df73826477f0210c76c0033e1fb6ba24693573da71d56411b0998e08ffb7b93003fd71a897eafeda72f420b967aec16
@@ -7,8 +7,17 @@ Oysters.with_configuration do
7
7
  namespace :logrotate do
8
8
  desc 'Install logrotate config'
9
9
  task :install, roles: :app do
10
+ environment = Rails.env
11
+ log_path = [ Pathname.new(shared_path).join('log', "#{environment}.log").to_s ]
12
+
13
+ if application == 'oiv-ui'
14
+ %W(#{environment}_delayed_job.log #{environment}_security_audit.log unicorn_#{environment}.stderr.log).each do |log|
15
+ log_path << Pathname.new(shared_path).join('log', log).to_s
16
+ end
17
+ end
18
+
10
19
  conf_path = "/etc/logrotate.d/#{application}_logs"
11
- log_path = Pathname.new(shared_path).join('log', '*.log').to_s
20
+ log_path = log_path.join(' ')
12
21
  tmp_file = "/tmp/#{application}_logs_#{rand}"
13
22
  location = File.expand_path('../../templates/logrotate_config.erb', __FILE__)
14
23
  config = ERB.new(File.read(location))
@@ -1,3 +1,3 @@
1
1
  module Oysters
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oysters
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Samoilov