Sha256: 374908d918261d3ffc89c41dc8804c74b3d1114552cc341ebb0aa64e2620ab5b
Contents?: true
Size: 821 Bytes
Versions: 18
Compression:
Stored size: 821 Bytes
Contents
module Kontena::Cli::Nodes::Vagrant class CreateCommand < Clamp::Command include Kontena::Cli::Common include Kontena::Cli::GridOptions parameter "[NAME]", "Node name" option "--memory", "MEMORY", "How much memory node has", default: '1024' option "--version", "VERSION", "Define installed Kontena version", default: 'latest' def execute require_api_url require_current_grid require 'kontena/machine/vagrant' grid = client(require_token).get("grids/#{current_grid}") provisioner = Kontena::Machine::Vagrant::NodeProvisioner.new(client(require_token)) provisioner.run!( master_uri: api_url, grid_token: grid['token'], grid: current_grid, name: name, memory: memory, version: version ) end end end
Version data entries
18 entries across 18 versions & 1 rubygems