Sha256: b34aef14858df65b03fdb28411b95336f150e5eaabaa8286a1b0ef4dcb5476ac
Contents?: true
Size: 783 Bytes
Versions: 16
Compression:
Stored size: 783 Bytes
Contents
module Kontena::Cli::Nodes::Vagrant class CreateCommand < Clamp::Command include Kontena::Cli::Common 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
16 entries across 16 versions & 1 rubygems