Sha256: 80776e95863ce01c873ea46d25b8aacd9e249027f3d2b951243ce50d1c26ecdd

Contents?: true

Size: 417 Bytes

Versions: 16

Compression:

Stored size: 417 Bytes

Contents

require_relative 'services_helper'

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

    parameter "NAME", "Service name"
    parameter "ENV", "Environment variable name"

    def execute
      require_api_url
      token = require_token
      client(token).delete("services/#{parse_service_id(name)}/envs/#{env}")
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
kontena-cli-0.11.7 lib/kontena/cli/services/remove_env_command.rb
kontena-cli-0.11.6 lib/kontena/cli/services/remove_env_command.rb
kontena-cli-0.11.5 lib/kontena/cli/services/remove_env_command.rb
kontena-cli-0.11.4 lib/kontena/cli/services/remove_env_command.rb
kontena-cli-0.11.3 lib/kontena/cli/services/remove_env_command.rb
kontena-cli-0.11.2 lib/kontena/cli/services/remove_env_command.rb
kontena-cli-0.11.1 lib/kontena/cli/services/remove_env_command.rb
kontena-cli-0.11.0 lib/kontena/cli/services/remove_env_command.rb
kontena-cli-0.10.3 lib/kontena/cli/services/remove_env_command.rb
kontena-cli-0.10.2 lib/kontena/cli/services/remove_env_command.rb
kontena-cli-0.10.1 lib/kontena/cli/services/remove_env_command.rb
kontena-cli-0.10.0 lib/kontena/cli/services/remove_env_command.rb
kontena-cli-0.9.3 lib/kontena/cli/services/remove_env_command.rb
kontena-cli-0.9.2 lib/kontena/cli/services/remove_env_command.rb
kontena-cli-0.9.1 lib/kontena/cli/services/remove_env_command.rb
kontena-cli-0.9.0 lib/kontena/cli/services/remove_env_command.rb