Sha256: 15afae61a2587436cb99b15b5ad4d2a6a56c9558e5f330f038079263de6fcc69
Contents?: true
Size: 442 Bytes
Versions: 22
Compression:
Stored size: 442 Bytes
Contents
require "vmc/cli/space/base" module VMC::Space class Take < Base desc "Switch to a space, creating it if it doesn't exist" group :spaces, :hidden => true input :name, :desc => "Space name", :argument => true def take_space if space = client.space_by_name(input[:name]) invoke :target, :space => space else invoke :create_space, :name => input[:name], :target => true end end end end
Version data entries
22 entries across 22 versions & 2 rubygems