Class: Gorails::Commands::Version

Inherits:
Gorails::Command
  • Object
show all
Defined in:
lib/gorails/commands/version.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.helpObject



10
11
12
# File 'lib/gorails/commands/version.rb', line 10

def self.help
  "Prints the version.\nUsage: {{command:#{Gorails::TOOL_NAME} version}}"
end

Instance Method Details

#call(_args, _name) ⇒ Object



6
7
8
# File 'lib/gorails/commands/version.rb', line 6

def call(_args, _name)
  puts Gorails::VERSION
end