Sha256: e09e2834be09c351e63c9fba006dc5d0a35ea68509303a7b1bc00c69f7cf9cee
Contents?: true
Size: 631 Bytes
Versions: 54
Compression:
Stored size: 631 Bytes
Contents
module Kontena::Cli::Volumes class RemoveCommand < Kontena::Command include Kontena::Cli::Common include Kontena::Cli::GridOptions banner "Removes a volume" parameter 'VOLUME', 'Volume' option "--force", :flag, "Force remove", default: false, attribute_name: :forced requires_current_master requires_current_master_token def execute confirm_command(volume) unless forced? spinner "Removing volume #{pastel.cyan(volume)} " do remove_volume(volume) end end def remove_volume(volume) client.delete("volumes/#{current_grid}/#{volume}") end end end
Version data entries
54 entries across 54 versions & 1 rubygems