lib/gaptool_client/commands.rb in gaptool-client-0.8.0.pre.alpha5 vs lib/gaptool_client/commands.rb in gaptool-client-0.8.0.pre.alpha6
- old
+ new
@@ -392,10 +392,10 @@
end
class VersionCommand < Clamp::Command
option ['-r', '--remote'], :flag, 'Include remote API version'
def execute
- version = File.read(File.realpath(File.join(File.dirname(__FILE__), '..', 'VERSION'))).strip
+ version = File.read(File.realpath(File.join(File.dirname(__FILE__), '..', '..', 'VERSION'))).strip
puts "gaptool-client #{version} using gaptool-api #{Gaptool::API.client.version}"
return 0 unless remote?
vinfo = Gaptool::API.client.api_version
puts "gaptool-server #{vinfo['server_version']}"
end