Class: Gaptool::VersionCommand

Inherits:
Clamp::Command
  • Object
show all
Defined in:
lib/gaptool-client.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



388
389
390
391
392
393
394
395
# File 'lib/gaptool-client.rb', line 388

def execute
  version = File.read(File.realpath(File.join(File.dirname(__FILE__), "..", 'VERSION'))).strip
  puts "gaptool-client #{version} using gaptool-api #{$api.version}"
  if remote?
    vinfo = $api.api_version()
    puts "gaptool-server #{vinfo['server_version']}"
  end
end