Class: Sequent::Generator::Project
- Inherits:
-
Object
- Object
- Sequent::Generator::Project
- Defined in:
- lib/sequent/generator/project.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(path_or_name) ⇒ Project
constructor
A new instance of Project.
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
#execute ⇒ Object
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 |