Class: New::Project

Inherits:
Object
  • Object
show all
Includes:
Version
Defined in:
lib/new/project.rb

Instance Method Summary collapse

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