Sha256: 8da3b101d565a1a4f7baa114782dc915b7162cd5580f6d121847cf7d9bdfcadb

Contents?: true

Size: 283 Bytes

Versions: 8

Compression:

Stored size: 283 Bytes

Contents

module Kontena::Cli::Vault
  class RemoveCommand < Clamp::Command
    include Kontena::Cli::Common

    parameter "NAME", "Secret name"

    def execute
      require_api_url
      token = require_token
      client(token).delete("secrets/#{current_grid}/#{name}")
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
kontena-cli-0.11.7 lib/kontena/cli/vault/remove_command.rb
kontena-cli-0.11.6 lib/kontena/cli/vault/remove_command.rb
kontena-cli-0.11.5 lib/kontena/cli/vault/remove_command.rb
kontena-cli-0.11.4 lib/kontena/cli/vault/remove_command.rb
kontena-cli-0.11.3 lib/kontena/cli/vault/remove_command.rb
kontena-cli-0.11.2 lib/kontena/cli/vault/remove_command.rb
kontena-cli-0.11.1 lib/kontena/cli/vault/remove_command.rb
kontena-cli-0.11.0 lib/kontena/cli/vault/remove_command.rb