lib/docman/docroot_config.rb in docman-0.0.3 vs lib/docman/docroot_config.rb in docman-0.0.4
- old
+ new
@@ -3,11 +3,11 @@
module Docman
class DocrootConfig
- attr_reader :structure
+ attr_reader :structure, :deploy_target
def initialize(docroot_dir, deploy_target)
@docroot_dir = docroot_dir
@deploy_target = deploy_target
@docroot_config_dir = File.join(docroot_dir, 'config')
@@ -25,9 +25,10 @@
info = YAML::load_file(File.join(path, 'info.yaml'))
name = File.basename path
prefix = prefix.size > 0 ? File.join(prefix, name) : name
info['full_path'] = path
+ info['docroot_config'] = self
info['build_path'] = prefix
info['full_build_path'] = File.join(@docroot_dir, prefix)
info['temp_path'] = File.join(@docroot_dir, 'tmp', info['build_path'])
info['name'] = name
info['parent'] = parent
\ No newline at end of file