Class: Doc::RootMerger

Inherits:
Merger show all
Defined in:
lib/doc/root_merger.rb

Instance Attribute Summary

Attributes inherited from Merger

#tasks

Attributes inherited from BaseTask

#config, #dir_name, #documentor, #title

Instance Method Summary collapse

Methods inherited from Merger

#build, #initialize

Methods inherited from BaseTask

#control_files_exist?, #eql?, #failed?, #hash, #initialize, #loaded_gem_version, #run?, state_methods, #succeeded?

Constructor Details

This class inherits a constructor from Doc::Merger

Instance Method Details

#doc_dirObject



3
4
5
# File 'lib/doc/root_merger.rb', line 3

def doc_dir
  documentor.public_dir
end

#runObject



7
8
9
10
11
12
# File 'lib/doc/root_merger.rb', line 7

def run
  super
  if succeeded?
    (doc_dir / documentor.docs_dir.basename).make_symlink(documentor.docs_dir.relative_path_from(doc_dir))
  end
end