Module: Pa::State
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- FILE_DELEGATED_METHODS =
[ :exists?, :atime, :ctime, :mtime, :stat, :lstat, :size, :zero?, :executable?, :executable_real?, :world_executable?, :readable?, :readable_real?, :world_readalbe?, :writeable?, :writeable_real?, :world_writeable?, :directory?, :file?, :blockdev?, :chardev?, :piple?, :socket?, :symlink?, :owned?, :grpowned?, :setgid?, :setuid?, :stricky?, :identical? ]
Instance Method Summary collapse
- #chmod(mode) ⇒ Object
- #chown(uid, gid = nil) ⇒ Object
- #lchmod(mode) ⇒ Object
- #lchown(uid, gid = nil) ⇒ Object
- #utime(atime, mtime) ⇒ Object
Methods included from Util::Concern
Instance Method Details
#chmod(mode) ⇒ Object
92 93 94 |
# File 'lib/pa/state.rb', line 92 def chmod(mode) File.chmod(mode, path) end |
#chown(uid, gid = nil) ⇒ Object
100 101 102 |
# File 'lib/pa/state.rb', line 100 def chown(uid, gid=nil) File.chown(uid, gid, path) end |
#lchmod(mode) ⇒ Object
96 97 98 |
# File 'lib/pa/state.rb', line 96 def lchmod(mode) File.lchmod(mode, path) end |
#lchown(uid, gid = nil) ⇒ Object
104 105 106 |
# File 'lib/pa/state.rb', line 104 def lchown(uid, gid=nil) File.lchown(uid, gid, path) end |
#utime(atime, mtime) ⇒ Object
108 109 110 |
# File 'lib/pa/state.rb', line 108 def utime(atime, mtime) File.utime(atime, mtime, path) end |