Class: GDK::Command::Version

Inherits:
BaseCommand show all
Defined in:
lib/gdk/command/version.rb

Overview

Handles ‘gdk version` command execution

Instance Attribute Summary

Attributes inherited from BaseCommand

#stderr, #stdout

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseCommand

#config, #display_help_message, #help, #initialize, #print_help, #print_ready_message, #ready_messages

Constructor Details

This class inherits a constructor from GDK::Command::BaseCommand

Class Method Details

.validate_config?Boolean

Allow invalid gdk.yml.

Returns:

  • (Boolean)


8
9
10
# File 'lib/gdk/command/version.rb', line 8

def self.validate_config?
  false
end

Instance Method Details

#run(_ = []) ⇒ Object



12
13
14
15
16
# File 'lib/gdk/command/version.rb', line 12

def run(_ = [])
  GDK::Output.puts("#{GDK::VERSION} (#{git_revision})")

  true
end