umount-many 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/TODO +0 -1
- data/VERSION +1 -1
- data/lib/.umount-many.rb.swp +0 -0
- data/lib/umount-many.rb +9 -4
- data/pkg/umount-many-0.1.1.gem +0 -0
- data/umount-many.gemspec +4 -2
- metadata +5 -3
data/TODO
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
Binary file
|
data/lib/umount-many.rb
CHANGED
@@ -110,11 +110,16 @@ def matched_devices(opts)
|
|
110
110
|
end
|
111
111
|
|
112
112
|
def unmount_many_fs(opts)
|
113
|
-
|
113
|
+
if opts[:all]
|
114
|
+
to_unmount = parse_file_systems
|
115
|
+
else
|
116
|
+
to_unmount = matched_devices(opts)
|
117
|
+
end
|
114
118
|
if opts[:simulate]
|
115
|
-
|
116
|
-
|
117
|
-
|
119
|
+
to_unmount.each do |device|
|
120
|
+
puts ("#{device[:device]} mounted on #{device[:mount_point]} as " +
|
121
|
+
"#{device[:type]}")
|
122
|
+
end
|
118
123
|
elsif opts[:reporting]
|
119
124
|
report_results(to_unmount, opts[:reporting])
|
120
125
|
else
|
Binary file
|
data/umount-many.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{umount-many}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Hagbard Celine"]
|
12
|
-
s.date = %q{2010-04-
|
12
|
+
s.date = %q{2010-04-22}
|
13
13
|
s.default_executable = %q{umount-many}
|
14
14
|
s.description = %q{Unmount several devices based on filters}
|
15
15
|
s.email = %q{sin3141592@gmail.com}
|
@@ -22,8 +22,10 @@ Gem::Specification.new do |s|
|
|
22
22
|
"TODO",
|
23
23
|
"VERSION",
|
24
24
|
"bin/umount-many",
|
25
|
+
"lib/.umount-many.rb.swp",
|
25
26
|
"lib/umount-many.rb",
|
26
27
|
"pkg/umount-many-0.1.0.gem",
|
28
|
+
"pkg/umount-many-0.1.1.gem",
|
27
29
|
"umount-many.gemspec"
|
28
30
|
]
|
29
31
|
s.homepage = %q{http://github.com/hackenporsche/umount-many}
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 3
|
9
|
+
version: 0.1.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Hagbard Celine
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-04-
|
17
|
+
date: 2010-04-22 00:00:00 +02:00
|
18
18
|
default_executable: umount-many
|
19
19
|
dependencies: []
|
20
20
|
|
@@ -31,8 +31,10 @@ files:
|
|
31
31
|
- TODO
|
32
32
|
- VERSION
|
33
33
|
- bin/umount-many
|
34
|
+
- lib/.umount-many.rb.swp
|
34
35
|
- lib/umount-many.rb
|
35
36
|
- pkg/umount-many-0.1.0.gem
|
37
|
+
- pkg/umount-many-0.1.1.gem
|
36
38
|
- umount-many.gemspec
|
37
39
|
has_rdoc: true
|
38
40
|
homepage: http://github.com/hackenporsche/umount-many
|