lib/docman/docroot_config.rb in docman-0.0.63 vs lib/docman/docroot_config.rb in docman-0.0.64
- old
+ new
@@ -5,10 +5,10 @@
class DocrootConfig
attr_reader :structure, :deploy_target, :docroot_dir, :root, :raw_infos
- def initialize(docroot_dir, deploy_target)
+ def initialize(docroot_dir, deploy_target = nil)
@docroot_dir = docroot_dir
@deploy_target = deploy_target
@docroot_config_dir = File.join(docroot_dir, 'config')
update
if File.file? File.join(@docroot_config_dir, 'config.yaml')
\ No newline at end of file