Class: Genit::ProjectCreator

Inherits:
Object
  • Object
show all
Defined in:
lib/genit/project/project_creator.rb

Overview

Create a skeleton project.

Instance Method Summary collapse

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

#createObject

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