home_cleaner 10.8.27 → 10.8.27.1
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.
- data/README.rdoc +30 -9
- data/lib/home_cleaner.rb +1 -1
- metadata +4 -3
data/README.rdoc
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
69
|
+
Sandor Szücs, sandor.szuecs@fu-berlin.de
|
|
49
70
|
|
|
50
71
|
== LICENSE
|
|
51
72
|
|
data/lib/home_cleaner.rb
CHANGED
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:
|
|
4
|
+
hash: 193
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 10
|
|
8
8
|
- 8
|
|
9
9
|
- 27
|
|
10
|
-
|
|
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://
|
|
43
|
+
homepage: http://github.com/szuecs/home_cleaner
|
|
43
44
|
licenses: []
|
|
44
45
|
|
|
45
46
|
post_install_message:
|