Class: Verto::MainCommand

Inherits:
BaseCommand show all
Defined in:
lib/verto/commands/main_command.rb

Instance Method Summary collapse

Methods inherited from BaseCommand

exit_on_failure?

Instance Method Details

#initObject



11
12
13
14
15
16
17
# File 'lib/verto/commands/main_command.rb', line 11

def init
  path = options[:path] || Verto.config.project.path

  validate_current_vertofile!(path)

  Template.render('Vertofile', to: path)
end

#versionObject



21
22
23
# File 'lib/verto/commands/main_command.rb', line 21

def version
  Verto.stdout.puts Verto::VERSION
end