Sha256: 089ec2e6450210f302eeebee633ebc0744eea7b59c947a5c34bd2a843d921ba1

Contents?: true

Size: 420 Bytes

Versions: 12

Compression:

Stored size: 420 Bytes

Contents

require_relative 'services_helper'

module Kontena::Cli::Services
  class EnvsCommand < Clamp::Command
    include Kontena::Cli::Common
    include ServicesHelper

    parameter "NAME", "Service name"

    def execute
      require_api_url
      token = require_token
      service = client(token).get("services/#{parse_service_id(name)}")
      service["env"].each do |env|
        puts env
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
kontena-cli-0.11.7 lib/kontena/cli/services/envs_command.rb
kontena-cli-0.11.6 lib/kontena/cli/services/envs_command.rb
kontena-cli-0.11.5 lib/kontena/cli/services/envs_command.rb
kontena-cli-0.11.4 lib/kontena/cli/services/envs_command.rb
kontena-cli-0.11.3 lib/kontena/cli/services/envs_command.rb
kontena-cli-0.11.2 lib/kontena/cli/services/envs_command.rb
kontena-cli-0.11.1 lib/kontena/cli/services/envs_command.rb
kontena-cli-0.11.0 lib/kontena/cli/services/envs_command.rb
kontena-cli-0.10.3 lib/kontena/cli/services/envs_command.rb
kontena-cli-0.10.2 lib/kontena/cli/services/envs_command.rb
kontena-cli-0.10.1 lib/kontena/cli/services/envs_command.rb
kontena-cli-0.10.0 lib/kontena/cli/services/envs_command.rb