Module: Pa::State

Extended by:
Util::Concern
Included in:
Pa
Defined in:
lib/pa/state.rb

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

Methods included from Util::Concern

included

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