Class: Genit::ProjectCreator
- Inherits:
-
Object
- Object
- Genit::ProjectCreator
- Defined in:
- lib/genit/project/project_creator.rb
Overview
Create a skeleton project.
Instance Method Summary collapse
-
#create ⇒ Object
Public: Create the structure of the project, that is many files and folders.
-
#initialize(name, empty, haml) ⇒ ProjectCreator
constructor
Sole constructor.
Constructor Details
#initialize(name, empty, haml) ⇒ ProjectCreator
Sole constructor.
name - The String name of the future project folder. empty - A Boolean telling if we produce a smoke test or not. haml - A Boolean telling if we want project’s files in haml or
not.
17 18 19 20 21 |
# File 'lib/genit/project/project_creator.rb', line 17 def initialize name, empty, haml @project_name = name @empty = empty @haml = haml end |
Instance Method Details
#create ⇒ Object
Public: Create the structure of the project, that is many files and folders.
Returns nothing.
27 28 29 30 31 32 33 |
# File 'lib/genit/project/project_creator.rb', line 27 def create begin create_the_project rescue SystemCallError puts "Cannot create project..." end end |