Sha256: 9065da7488a1ab5205d910a4a7919f08bbbdf651a849b17fe45b6f961aa5f910
Contents?: true
Size: 445 Bytes
Versions: 86
Compression:
Stored size: 445 Bytes
Contents
require 'kontena/cli/version' class Kontena::Cli::VersionCommand < Kontena::Command include Kontena::Cli::Common option "--cli", :flag, "Only CLI version" def execute puts "cli: #{Kontena::Cli::VERSION}" return if cli? url = api_url rescue nil 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
86 entries across 86 versions & 2 rubygems