Class: Sequent::Generator::Project

Inherits:
Object
  • Object
show all
Defined in:
lib/sequent/generator/project.rb

Instance Method Summary collapse

Constructor Details

#initialize(path_or_name) ⇒ Project

Returns a new instance of Project.



10
11
12
# File 'lib/sequent/generator/project.rb', line 10

def initialize(path_or_name)
  @path_or_name = path_or_name
end

Instance Method Details

#executeObject



14
15
16
17
18
19
20
21
# File 'lib/sequent/generator/project.rb', line 14

def execute
  fail TargetAlreadyExists if File.exist?(path)

  make_directory
  copy_files
  rename_app_file
  replace_app_name
end