class Kitchen::Terraform::Command::WorkspaceDelete

The workspace is deleted by running a command like the following example:

terraform workspace delete <name>

Attributes

workspace_name[RW]

Public Class Methods

new(config:) click to toggle source

@param config [Hash] the configuration of the driver. @option config [String] :workspace_name the name of the Terraform workspace. @return [Kitchen::Terraform::Command::WorkspaceDelete]

# File lib/kitchen/terraform/command/workspace_delete.rb, line 26
def initialize(config:)
  self.workspace_name = config.fetch :workspace_name
end

Public Instance Methods

to_s() click to toggle source

@return [String] the command.

# File lib/kitchen/terraform/command/workspace_delete.rb, line 31
def to_s
  "workspace delete #{workspace_name}"
end