Sha256: b972e1356fa4f32663d04a30fc280669166f8f75ea6ae91da6beef1c17b4c9d9
Contents?: true
Size: 442 Bytes
Versions: 51
Compression:
Stored size: 442 Bytes
Contents
require_relative '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
51 entries across 51 versions & 1 rubygems