Sha256: 14573ab2fc5060975ec1980e12ffd1664c1dcc383b3a3e333f89cd9f21198909
Contents?: true
Size: 636 Bytes
Versions: 34
Compression:
Stored size: 636 Bytes
Contents
module Kontena::Cli::Nodes class CreateCommand < Kontena::Command include Kontena::Cli::Common include Kontena::Cli::GridOptions requires_current_master requires_current_master_token requires_current_grid parameter "NAME", "Node name" option ["--token"], "TOKEN", "Node token" option ["-l", "--label"], "LABEL", "Node label", multivalued: true def execute data = { name: name } data[:token] = token if token data[:labels] = label_list spinner "Creating #{pastel.cyan(name)} node " do client.post("grids/#{current_grid}/nodes", data) end end end end
Version data entries
34 entries across 34 versions & 2 rubygems