module RComp::Actions

Public Instance Methods

mkdir(path) click to toggle source
# File lib/rcomp/actions.rb, line 17
def mkdir(path)
  unless File.exist? path
    FileUtils.mkdir path
  end
end
mkpath(path) click to toggle source
# File lib/rcomp/actions.rb, line 29
def mkpath(path)
  unless File.exists? path
    FileUtils.mkpath path
  end
end
mkpath_to(path) click to toggle source
# File lib/rcomp/actions.rb, line 23
def mkpath_to(path)
  unless File.exists? path
    FileUtils.mkpath File.dirname(path)
  end
end
rm(file) click to toggle source
# File lib/rcomp/actions.rb, line 11
def rm(file)
  if File.exist? file
    FileUtils.rm file
  end
end
rm_rf(directory) click to toggle source
# File lib/rcomp/actions.rb, line 5
def rm_rf(directory)
  if File.exist? directory
    FileUtils.rm_rf directory
  end
end
touch(path) click to toggle source
# File lib/rcomp/actions.rb, line 35
def touch(path)
  FileUtils.touch path
end