Class: Kitchen::Terraform::Command::WorkspaceDelete
- Inherits:
-
Object
- Object
- Kitchen::Terraform::Command::WorkspaceDelete
- Defined in:
- lib/kitchen/terraform/command/workspace_delete.rb
Overview
The workspace is deleted by running a command like the following example:
terraform workspace delete <name>
Instance Method Summary collapse
- #initialize(config:) ⇒ Kitchen::Terraform::Command::WorkspaceDelete constructor
-
#to_s ⇒ String
The command.
Constructor Details
#initialize(config:) ⇒ Kitchen::Terraform::Command::WorkspaceDelete
26 27 28 |
# File 'lib/kitchen/terraform/command/workspace_delete.rb', line 26 def initialize(config:) self.workspace_name = config.fetch :workspace_name end |
Instance Method Details
#to_s ⇒ String
Returns the command.
31 32 33 |
# File 'lib/kitchen/terraform/command/workspace_delete.rb', line 31 def to_s "workspace delete #{workspace_name}" end |