Class: Moonshot::Commands::New

Inherits:
Moonshot::Command show all
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

inherited, #parser

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
  print_success_message
end

Instance Method Details

#executeObject



11
12
13
# File 'lib/moonshot/commands/new.rb', line 11

def execute
  warn 'Looks like your project is already set up!'
end