Class: New::Project
Instance Method Summary collapse
-
#initialize(template, name) ⇒ Project
constructor
Create all variables and run new project creation methods.
Methods included from Version
#bump_version, #part, #previous_version, #version
Constructor Details
#initialize(template, name) ⇒ Project
Create all variables and run new project creation methods
6 7 8 9 10 11 12 |
# File 'lib/new/project.rb', line 6 def initialize template, name @project_dir = File.join(Dir.pwd, name.to_s) # the newly created project directory @template = New::Template.new template, name copy_template create_config_file end |