Class: Verto::MainCommand
- Inherits:
-
BaseCommand
- Object
- Thor
- BaseCommand
- Verto::MainCommand
- Defined in:
- lib/verto/commands/main_command.rb
Instance Method Summary collapse
Methods inherited from BaseCommand
Instance Method Details
#init ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/verto/commands/main_command.rb', line 11 def init path = [:path] || Verto.config.project.path validate_current_vertofile!(path) Template.render('Vertofile', to: path) end |
#version ⇒ Object
21 22 23 |
# File 'lib/verto/commands/main_command.rb', line 21 def version Verto.stdout.puts Verto::VERSION end |