Sha256: 9e107a90fec6f9d6d304bf4184339106377a2f33158f11cb583c9c3f947eaba0

Contents?: true

Size: 470 Bytes

Versions: 6

Compression:

Stored size: 470 Bytes

Contents

# frozen_string_literal: true

require_relative 'base'
require_relative '../options/common'

module RubyTerraform
  module Commands
    class WorkspaceSelect < Base
      include RubyTerraform::Options::Common

      def subcommands
        %w[workspace select]
      end

      def arguments(parameters)
        [parameters[:workspace], parameters[:directory]]
      end

      def parameter_defaults(_parameters)
        { directory: nil }
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ruby-terraform-0.65.0.pre.15 lib/ruby_terraform/commands/workspace_select.rb
ruby-terraform-0.65.0.pre.14 lib/ruby_terraform/commands/workspace_select.rb
ruby-terraform-0.65.0.pre.13 lib/ruby_terraform/commands/workspace_select.rb
ruby-terraform-0.65.0.pre.12 lib/ruby_terraform/commands/workspace_select.rb
ruby-terraform-0.65.0.pre.11 lib/ruby_terraform/commands/workspace_select.rb
ruby-terraform-0.65.0.pre.10 lib/ruby_terraform/commands/workspace_select.rb