Class: Moonshot::Commands::New
- Inherits:
-
Moonshot::Command
- Object
- Moonshot::Command
- Moonshot::Commands::New
- Defined in:
- lib/moonshot/commands/new.rb
Constant Summary collapse
- DEFAULT_DIRECTORY =
File.join(__dir__, '..', '..', 'default').freeze
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Moonshot::Command
Class Method Details
.run!(application_name) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/moonshot/commands/new.rb', line 16 def run!(application_name) @application_name = application_name create_project_dir copy_defaults fill_moonfile end |
Instance Method Details
#execute ⇒ Object
11 12 13 |
# File 'lib/moonshot/commands/new.rb', line 11 def execute warn 'Looks like your project is already set up!' end |