lib/terraspace/terraform/cloud/workspace.rb in terraspace-0.3.3 vs lib/terraspace/terraform/cloud/workspace.rb in terraspace-0.3.4
- old
+ new
@@ -18,18 +18,9 @@
names = payload['data'].map { |i| i['attributes']['name'] }.sort
logger.info "Workspaces for #{org}:"
logger.info names.join("\n")
end
- def setup
- build
- unless backend.dig('remote','workspaces') # in case called by terraspace down demo -y --destroy-workspace with a non-remote backend
- logger.info "ERROR: Workspace not configured in backend.tf"
- exit 1
- end
- init
- end
-
def init
Terraspace::CLI::Init.new(@options.merge(calling_command: "cloud-setup")).run
end
def create