Class: Ramaze::Tool::Create
Overview
Create is a simple class used to create new projects based on the proto directory.
It is primarly used for this command:
ramaze --create project
where project is the directory you want the content put into.
Constant Summary collapse
- DEFAULT =
Default options passed to Create::create
:proto is the directory to duplicate :amend no files may be overwritten but missing files will be added :force will overwrite existing files :layout copy one subdirectory in +proto+
{ :proto => File.join(::Ramaze::BASEDIR, 'proto'), :amend => false, :force => false, :layout => '/', }
Class Method Summary collapse
-
.create(project, options = {}) ⇒ Object
Using ProjectCreator to copy all files and directories from lib/proto to another location.
Class Method Details
.create(project, options = {}) ⇒ Object
41 42 43 44 45 |
# File 'lib/ramaze/tool/create.rb', line 41 def self.create(project, = {}) = DEFAULT.merge() creator = ProjectCreator.new(project, ) creator.create end |