cowtech-rails 2.3.0.4 → 2.3.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -61,7 +61,7 @@ module Cowtech
61
61
  def self.clean
62
62
  puts "Cleaning log files..."
63
63
 
64
- ["log/*.log", "log/*.#{@@log_compressed_extension}"].each do |path|
64
+ ["backups/logs/*.log", "backups/logs/*.#{@@log_compressed_extension}"].each do |path|
65
65
  Dir.glob(Rails.root + path) do |log_file|
66
66
  puts "\tDeleting #{log_file.gsub(Rails.root.to_s + "/", "")} ..."
67
67
  File.delete(log_file)
@@ -2,4 +2,16 @@
2
2
  #
3
3
  # This file is part of the cowtech-rails gem. Copyright (C) 2011 and above Shogun <shogun_panda@me.com>.
4
4
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
- #
5
+ #
6
+
7
+ namespace :mysql do
8
+ desc "Backups MongoDB collections"
9
+ task :backup do |task|
10
+
11
+ end
12
+
13
+ desc "Clean every backup file"
14
+ task :backup_clean do |task|
15
+
16
+ end
17
+ end
@@ -84,7 +84,7 @@ module Cowtech
84
84
  def self.backup_clean
85
85
  puts "--- Cleaning database backup files ..."
86
86
 
87
- ["db/backup/*.sql", "db/backup/*.#{@@log_compressed_extension}"].each do |path|
87
+ ["backups/mysql/*.sql", "backups/mysql/backup/*.#{@@log_compressed_extension}"].each do |path|
88
88
  Dir.glob(Rails.root + path) do |log_file|
89
89
  puts "\tDeleting #{log_file.gsub(Rails.root.to_s + "/", "")} ..."
90
90
  File.delete(log_file)
@@ -10,7 +10,7 @@ module Cowtech
10
10
  MAJOR = 2
11
11
  MINOR = 3
12
12
  PATCH = 0
13
- BUILD = 4
13
+ BUILD = 5
14
14
 
15
15
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
16
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cowtech-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0.4
4
+ version: 2.3.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-11-19 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cowtech-extensions
16
- requirement: &70325422750360 !ruby/object:Gem::Requirement
16
+ requirement: &70234498782720 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70325422750360
24
+ version_requirements: *70234498782720
25
25
  description: A general purpose Rails utility plugin.
26
26
  email: shogun_panda@me.com
27
27
  executables: []