class RubyTerraform::Commands::WorkspaceShow
Wraps the +terraform workspace show+ command which shows the name of the current workspace.
For options accepted on construction, see {#initialize}.
When executing an instance of {WorkspaceSelect} via {#execute}, the following options are supported:
-
:chdir
: the path of a working directory to switch to before executing the given subcommand.
@example Basic Invocation
RubyTerraform::Commands::WorkspaceShow.new.execute
Public Instance Methods
subcommands()
click to toggle source
@!visibility private
# File lib/ruby_terraform/commands/workspace_show.rb, line 26 def subcommands %w[workspace show] end