Sha256: c23231b14f8277f5ff31c9ff8177459a724ffe0903ef2dead124bb6a85d4d7a6
Contents?: true
Size: 481 Bytes
Versions: 4
Compression:
Stored size: 481 Bytes
Contents
module Kontena::Cli::Etcd class RemoveCommand < Clamp::Command include Kontena::Cli::Common parameter "KEY", "Etcd key" option "--recursive", :flag, "Remove keys recursively" def execute require_api_url token = require_token data = {} data[:recursive] = true if recursive? response = client(token).delete("etcd/#{current_grid}/#{key}", data) if response['error'] abort response['error'] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems