Sha256: c76b0dea97e919f33d517ac22db9155381dfbc0d624a427efc353f8f654a3ef7
Contents?: true
Size: 588 Bytes
Versions: 77
Compression:
Stored size: 588 Bytes
Contents
require_relative '../services_helper' module Kontena::Cli::Services::Envs class ListCommand < Kontena::Command include Kontena::Cli::Common include Kontena::Cli::GridOptions include Kontena::Cli::Services::ServicesHelper include Kontena::Cli::TableGenerator::Helper parameter "NAME", "Service name" requires_current_master requires_current_master_token def execute service = client.get("services/#{parse_service_id(name)}") service["env"].sort.each do |env| puts quiet? ? env.split('=', 2).first : env end end end end
Version data entries
77 entries across 77 versions & 2 rubygems