module Rundoc::CodeCommand::FileUtil

Public Instance Methods

filename() click to toggle source
# File lib/rundoc/code_command/write.rb, line 4
def filename
  files = Dir.glob(@filename)
  if files.length > 1
    raise "Filename glob #{@filename.inspect} matched more than one file. Be more specific to only match one file. Matches:\n" + files.join("  \n")
  end
  files.first || @filename
end
mkdir_p() click to toggle source
# File lib/rundoc/code_command/write.rb, line 12
def mkdir_p
  dir = File.expand_path("../", filename)
  FileUtils.mkdir_p(dir)
end