Sha256: 56ee226fdd996b7cc97afa6dd1bf4f4246710a38036306a2b2061816ec050f6b
Contents?: true
Size: 553 Bytes
Versions: 76
Compression:
Stored size: 553 Bytes
Contents
module Kontena::Cli::Master::Config class GetCommand < Kontena::Command include Kontena::Cli::Common requires_current_master requires_current_master_token banner "Reads a configuration value from master" parameter "KEY", "Configuration key to read from master", required: true option ['-p', '--pair'], :flag, "Print key=value instead of only value" def response client.get("config/#{key}") end def execute value = response[key] print(key + '=') if pair? puts value end end end
Version data entries
76 entries across 76 versions & 2 rubygems