Sha256: d6d4c013d282c246ce46283dfc47c124314fa953623313ccfb838fbdf4dab596
Contents?: true
Size: 496 Bytes
Versions: 28
Compression:
Stored size: 496 Bytes
Contents
require_relative '../services_helper' module Kontena::Cli::Services::Envs class ListCommand < Clamp::Command include Kontena::Cli::Common include Kontena::Cli::GridOptions include Kontena::Cli::Services::ServicesHelper parameter "NAME", "Service name" def execute require_api_url token = require_token service = client(token).get("services/#{parse_service_id(name)}") service["env"].sort.each do |env| puts env end end end end
Version data entries
28 entries across 28 versions & 1 rubygems