Class: Muwu::ProjectStarter
- Inherits:
-
Object
- Object
- Muwu::ProjectStarter
- Includes:
- Muwu
- Defined in:
- lib/muwu/project_builder/project_starter.rb
Constant Summary
Constants included from Muwu
GEM_HOME_LIB, GEM_HOME_LIB_MUWU, VERSION
Instance Method Summary collapse
-
#initialize(current_working_directory, metadata) ⇒ ProjectStarter
constructor
A new instance of ProjectStarter.
- #new_project ⇒ Object
Methods included from Muwu
Constructor Details
#initialize(current_working_directory, metadata) ⇒ ProjectStarter
Returns a new instance of ProjectStarter.
8 9 10 11 |
# File 'lib/muwu/project_builder/project_starter.rb', line 8 def initialize(current_working_directory, ) @current_working_directory = File.absolute_path(current_working_directory) @metadata = end |
Instance Method Details
#new_project ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/muwu/project_builder/project_starter.rb', line 17 def new_project project = Project.new project. = @metadata project. = Default::PROJECT_OPTIONS project.working_directory = File.absolute_path(File.join(@current_working_directory, @metadata[:slug])) project end |