Handles directory source paths.
Recursively create the directories specified in dirname under parent (a leading slash is ignored). The path path is the path that lead to the creation of these directories.
# File lib/webgen/sourcehandler/directory.rb, line 17 17: def create_directories(parent, dirname, path) 18: dirname.sub(/^\//, '').split('/').each do |dir| 19: dir_path = Webgen::Path.new(File.join(parent.alcn, dir, '/'), path) 20: nodes = website.blackboard.invoke(:create_nodes, dir_path, self) do |dir_path| 21: node_exists?(dir_path) || create_node(dir_path) 22: end 23: parent = nodes.first 24: end 25: parent 26: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.