oysters 0.9.9 → 1.0.0

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: d3548f9d183107ebe52ddfa88605ae91fbc19dd0
4
- data.tar.gz: 25aa27865a220441f0a4f9bf2dec90a6b04fd9b5
3
+ metadata.gz: d3b11d634d34e7f2ef2d727093de55503886b47e
4
+ data.tar.gz: e453a9a5bfe4791d2e77fbd71331a2b97209c818
5
5
  SHA512:
6
- metadata.gz: abe8efdb87b84586452b3bdd3cb608702da9b8c46f5b4e0311e77bb6ac43b92947ad5ab8ee4d61994aa0e5c6abe757cfe3ab79f166b48d87ad2f05165fa8dc8b
7
- data.tar.gz: 5eb356b4c80ae2976d91c480804e8ba9e112f31eefd141c9c8c907e7e66baf12057f0687afb72a80e099b27d09dd5a4e378d2ed2eb8c63800d6ec64725661f4d
6
+ metadata.gz: 68164ebfe54736dd6d8dabdcd832ad8e036d803c0d7704ac90df4b0bda8f7f51dff2b5ff12af5e1db80c7d15579a00592d0ef5e7812b396290ce78b64d862cf2
7
+ data.tar.gz: 7be728bc81d16823e435adbd6993227bb4c55661b929f9b2df42a6422d0c5732122f8889f90e7f522c89f552ebf5f11ad1f62c52a57eff3e57090ac3bd63ef56
@@ -7,13 +7,16 @@ Oysters.with_configuration do
7
7
  namespace :logrotate do
8
8
  desc 'Install logrotate config'
9
9
  task :install, roles: :app do
10
- log_path = Pathname.new(shared_path).join('log', "#{rails_env}.log").to_s
11
- tmp_file = "/tmp/#{application}_logs_#{rand}"
12
- location = File.expand_path('../../templates/logrotate_config.erb', __FILE__)
13
- config = ERB.new(File.read(location))
10
+ conf_path = "/etc/logrotate.d/#{application}_logs"
11
+ log_path = Pathname.new(shared_path).join('log', "#{rails_env}.log").to_s
12
+ tmp_file = "/tmp/#{application}_logs_#{rand}"
13
+ location = File.expand_path('../../templates/logrotate_config.erb', __FILE__)
14
+ config = ERB.new(File.read(location))
14
15
 
15
16
  put config.result(binding), tmp_file
16
- sudo "mv #{tmp_file} /etc/logrotate.d/#{application}_logs"
17
+ sudo "mv #{tmp_file} #{conf_path}"
18
+
19
+ sudo "logrotate #{conf_path}"
17
20
  end
18
21
  end
19
22
 
@@ -1,3 +1,3 @@
1
1
  module Oysters
2
- VERSION = "0.9.9"
2
+ VERSION = "1.0.0"
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: 0.9.9
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Samoilov