Sha256: 0afec34766bac6b371b3c4fa961ed3ee4448bdc1269fad9e952fe14c3c002b9d

Contents?: true

Size: 455 Bytes

Versions: 4

Compression:

Stored size: 455 Bytes

Contents

require_relative 'services_helper'

module Kontena::Cli::Services
  class RemoveEnvCommand < Clamp::Command
    include Kontena::Cli::Common
    include Kontena::Cli::GridOptions
    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

4 entries across 4 versions & 1 rubygems

Version Path
kontena-cli-0.12.3 lib/kontena/cli/services/remove_env_command.rb
kontena-cli-0.12.2 lib/kontena/cli/services/remove_env_command.rb
kontena-cli-0.12.1 lib/kontena/cli/services/remove_env_command.rb
kontena-cli-0.12.0 lib/kontena/cli/services/remove_env_command.rb