Sha256: da330205d2f17e7d5cc227b76f1176d687fd9c202711088c0ef36654eb8a43d7
Contents?: true
Size: 454 Bytes
Versions: 2
Compression:
Stored size: 454 Bytes
Contents
module Kontena::Cli::Nodes class UpdateCommand < Clamp::Command include Kontena::Cli::Common parameter "NODE_ID", "Node id" option ["-l", "--label"], "LABEL", "Node label", multivalued: true def execute require_api_url require_current_grid token = require_token data = {} data[:labels] = label_list if label_list client(token).put("grids/#{current_grid}/nodes/#{node_id}", data) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kontena-cli-0.8.0.1 | lib/kontena/cli/nodes/update_command.rb |
kontena-cli-0.8.0 | lib/kontena/cli/nodes/update_command.rb |