Sha256: 05f1e1cf6c818d51cb53219807507dce7ef8ac5fcfa26d1fde614e9489a2d6c2
Contents?: true
Size: 375 Bytes
Versions: 32
Compression:
Stored size: 375 Bytes
Contents
require_relative 'version' class Kontena::Cli::VersionCommand < Clamp::Command include Kontena::Cli::Common def execute url = api_url rescue nil puts "cli: #{Kontena::Cli::VERSION}" if url resp = JSON.parse(client.http_client.get(path: '/').body) rescue nil if resp puts "master: #{resp['version']} (#{url})" end end end end
Version data entries
32 entries across 32 versions & 1 rubygems