class Kitchen::Terraform::Command::WorkspaceSelect
The workspace is selected by running a command like the following example:
terraform workspace select <name>
Attributes
workspace_name[RW]
Public Class Methods
new(config:)
click to toggle source
initialize prepares a new instance of the class.
@param config [Hash] the configuration of the driver. @option config [String] :workspace_name the name of the Terraform
workspace. @return [Kitchen::Terraform::Command::WorkspaceSelect]
# File lib/kitchen/terraform/command/workspace_select.rb, line 28 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_select.rb, line 33 def to_s "workspace select #{workspace_name}" end