lib/pa/state.rb in pa-1.0.2 vs lib/pa/state.rb in pa-1.0.3
- old
+ new
@@ -1,8 +1,7 @@
class Pa
module ClassMethods::State
-
# @see File.chmod
def chmod(mode, *paths) paths.map!{|v|get(v)}; File.chmod(mode, *paths) end
# @see File.lchmod
def lchmod(mode, *paths) paths.map!{|v|get(v)}; File.lchmod(mode, *paths) end
@@ -14,11 +13,10 @@
def lchown(user, group=nil, *paths) paths.map!{|v|get(v)}; File.lchown(user, group, *paths) end
# @see File.utime
def utime(atime, mtime, *paths) paths.map!{|v|get(v)}; File.utime(atime, mtime, *paths) end
-
# get file type
#
# file types:
# "chardev" "blockdev" "symlink" ..
#
@@ -34,10 +32,9 @@
"symlink"
else
t
end
end # def type
-
# is path a mountpoint?
#
# @param[String] path
# @return [Boolean]