Sha256: 831f5cae2db7602857ccea03078352571a105bb593b7860ec9cd64e948577bd1

Contents?: true

Size: 513 Bytes

Versions: 22

Compression:

Stored size: 513 Bytes

Contents

require_relative '../common'
require_relative 'common'

module Kontena::Cli::Stacks::Labels
  class RemoveCommand < Kontena::Command
    include Kontena::Cli::Common
    include Kontena::Cli::GridOptions
    include Common

    parameter "NAME", "Stack name"
    parameter "LABEL ...", "Labels"

    requires_current_master
    requires_current_master_token

    def execute
      original_labels = fetch_master_data(name)
      update_stack(name, { 'labels' => (original_labels - label_list) })
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
krates-1.7.11 lib/kontena/cli/stacks/labels/remove_command.rb
krates-1.7.10 lib/kontena/cli/stacks/labels/remove_command.rb
krates-1.7.9 lib/kontena/cli/stacks/labels/remove_command.rb
krates-1.7.8 lib/kontena/cli/stacks/labels/remove_command.rb
krates-1.7.7 lib/kontena/cli/stacks/labels/remove_command.rb
krates-1.7.6 lib/kontena/cli/stacks/labels/remove_command.rb
krates-1.7.5 lib/kontena/cli/stacks/labels/remove_command.rb
krates-1.7.4 lib/kontena/cli/stacks/labels/remove_command.rb
krates-1.7.3 lib/kontena/cli/stacks/labels/remove_command.rb
krates-1.7.2 lib/kontena/cli/stacks/labels/remove_command.rb
krates-1.7.1 lib/kontena/cli/stacks/labels/remove_command.rb
krates-1.7.0 lib/kontena/cli/stacks/labels/remove_command.rb
krates-1.6.9 lib/kontena/cli/stacks/labels/remove_command.rb
krates-1.6.8 lib/kontena/cli/stacks/labels/remove_command.rb
krates-1.6.7 lib/kontena/cli/stacks/labels/remove_command.rb
krates-1.6.6 lib/kontena/cli/stacks/labels/remove_command.rb
krates-1.6.5 lib/kontena/cli/stacks/labels/remove_command.rb
krates-1.6.4 lib/kontena/cli/stacks/labels/remove_command.rb
krates-1.6.3 lib/kontena/cli/stacks/labels/remove_command.rb
krates-1.6.2 lib/kontena/cli/stacks/labels/remove_command.rb