home_cleaner 10.8.27 → 10.8.27.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.rdoc +30 -9
  2. data/lib/home_cleaner.rb +1 -1
  3. metadata +4 -3
@@ -1,5 +1,3 @@
1
- = HomeCleaner
2
-
3
1
  == DESCRIPTION
4
2
 
5
3
  home_cleaner deletes user directories on a Mac OS X computer when they are old
@@ -8,7 +6,7 @@ maintaining a pc lab.
8
6
  Maybe you can achieve the same with UNIX find(1). The following could be
9
7
  sufficient:
10
8
 
11
- find /Users/* -maxdepth 0 -mtime +7 -type d -not -name Shared | xargs -n1 rm -rf
9
+ % find /Users/* -maxdepth 0 -mtime +7 -type d -not -name Shared | xargs -n1 rm -rf
12
10
 
13
11
  == SYNOPSIS
14
12
 
@@ -23,29 +21,52 @@ sufficient:
23
21
 
24
22
  == REQUIREMENTS
25
23
 
26
- Ruby.
24
+ Mac OS X and Ruby.
27
25
 
28
26
  == INSTALL
29
27
 
30
- gem install home_cleaner
28
+ % gem install home_cleaner
29
+
30
+ If that fails you may have not the rights to install, try again using sudo.
31
+ Update rubygems, if you get an error like:
32
+
33
+ ERROR: While executing gem ... (Gem::RemoteSourceException)
34
+ HTTP Response 302 fetching http://gems.rubyforge.org/yaml
35
+
36
+ You can install rubygems version 1.3.7 with:
37
+
38
+ % curl -LO http://production.cf.rubygems.org/rubygems/rubygems-update-1.3.7.gem
39
+ % gem i rubygems-update-1.3.7.gem
40
+ % update_rubygems
31
41
 
32
42
  == CONFIG
33
43
 
34
- Have a look at config/home_cleaner.yml.
44
+ Edit config file $home_cleaner-DIR/config/home_cleaner.yml for your needs of
45
+ threshold and account which should not be deleted.
46
+ Default config:
47
+ - For deletion blacklisted directories: /Users/{admin,lokal,Shared}
48
+ - threshold: > 1 month old
49
+ A launchd $home_cleaner-DIR/launchd/de.fuberlin.home_cleaner.plist is provided
50
+ for running each monday at 7:01 AM. Just copy it to /Library/LaunchDaemons/
51
+ and change it for your needs.
52
+
53
+ $home_cleaner-DIR = grandparent directory of:
54
+
55
+ % gem which home_cleaner
35
56
 
36
57
  == Bug reports
37
58
 
38
- Please, send me an e-mail.
59
+ Please, send me an e-mail.
39
60
 
40
61
  == DEVELOPMENT
41
62
 
42
63
  To check out the source code:
43
64
 
44
- git clone http://github.com/szuecs/home_cleaner.git
65
+ % git clone http://github.com/szuecs/home_cleaner.git
45
66
 
46
67
  == AUTHORS
47
68
 
48
- Sandor Szücs, sandor.szuecs@fu-berlin.de
69
+ Sandor Szücs, sandor.szuecs@fu-berlin.de
49
70
 
50
71
  == LICENSE
51
72
 
@@ -3,7 +3,7 @@ require "optparse"
3
3
  require "yaml"
4
4
 
5
5
  class HomeCleaner
6
- VERSION = "10.8.27"
6
+ VERSION = "10.8.27.1"
7
7
 
8
8
  def self.default_options
9
9
  {
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: home_cleaner
3
3
  version: !ruby/object:Gem::Version
4
- hash: 89
4
+ hash: 193
5
5
  prerelease: false
6
6
  segments:
7
7
  - 10
8
8
  - 8
9
9
  - 27
10
- version: 10.8.27
10
+ - 1
11
+ version: 10.8.27.1
11
12
  platform: ruby
12
13
  authors:
13
14
  - Sandor Szuecs
@@ -39,7 +40,7 @@ files:
39
40
  - CHANGELOG.rdoc
40
41
  - test/test_home_cleaner.rb
41
42
  has_rdoc: true
42
- homepage: http://rubygems.org/gems/home_cleaner
43
+ homepage: http://github.com/szuecs/home_cleaner
43
44
  licenses: []
44
45
 
45
46
  post_install_message: