Method: Docman::Application#template
- Defined in:
- lib/application.rb
#template(name, options = false) ⇒ Object
106 107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/application.rb', line 106 def template(name, = false) with_rescue(false) do @options = @docroot_config = DocrootConfig.new(@workspace_dir, nil) project = @docroot_config.project(name) unless project['template'].nil? Dir.chdir project['full_build_path'] Exec.do "#{Application::bin}/project-template.sh #{project['template']}" log "Project had been initialized with template: #{project['template']}" end end end |