Class: Gaptool::VersionCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Gaptool::VersionCommand
- Defined in:
- lib/gaptool-client.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
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 |